1 Aug 01:17
Mass bug filing: init script "status" action
Dustin Kirkland <kirkland <at> canonical.com>
2008-07-31 23:17:05 GMT
2008-07-31 23:17:05 GMT
Howdy debian-(Continue reading)devel- The LSB 3.1 specification [1] defines a 'status' action for LSB-compliant init scripts. Some high-availability (HA) packages included in Debian expect to use a 'status' action as provided by the init script [2] to query daemon status. In general, such 'status' actions in Debian would be broadly useful to both system administrators and users. The lsb-base 3.2-14 package adds a new library function to /lib/lsb/init-functions; namely, status_of_proc() [3,4]. This function can be used in the vast majority of init scripts to generically provide an interface to gathering and reporting status. Individual init script patches often look something like: + status) + status_of_proc -p "$PIDFILE" "$DAEMON" "$NAME" && exit 0 || exit $? + ;; As an example, see Debian Bug #492138 against rsync and the associated patch [5]. Bug #208010 suggests LSB-compliance of all init scripts in Debian [6]. And Bug #291148 suggests a debian-policy change requiring 'status' actions for all init scripts [7]. I believe that the new functionality present in lsb-base provides a healthy framework for advancing such 'status' actions in a vast number of Debian init scripts. In Ubuntu, we have undertaken an effort to patch as many such init scripts as possible [8]. In most of these cases, we would like to
Back to the topic: one of the mentioned "initial" bug reports was sent
against samba (#488275) with very good interaction with the bug
submitter (he proposed a patch, we^WSteve criticized it, and we nearly
converged on something we could decide to implement post-lenny).
RSS Feed