-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Subject: dpkg: maybe make status option --status Followup-For: Bug #131844 Package: dpkg Version: 1.10.9 The LSB also specifies a mandatory status option to all init scripts: http://www.linuxbase.org/spec/refspecs/LSB_1.3.0/gLSB/gLSB/iniscrptact.html It would be nice to have start-stop daemon support for this. According to the LSB the return codes should be: 0 program is running or service is OK 1 program is dead and /var/run pid file exists 2 program is dead and /var/lock lock file exists 3 program is stopped 4 program or service status is unknown I have attached a small patch implementing the --status option to demonstrate the idea. If you think this is a good idea I will also write correct documentation for it if you like (manual page with a big fat warning to depend on dpkg (>= 1.10.10) (or whatever) , fix return code section of --help output, etc, etc). - -- System Information: Debian Release: testing/unstable Architecture: i386 Kernel: Linux spiritus 2.4.20 #1 Mon Mar 3 21:09:09 CET 2003 i686 Locale: LANG=C, LC_CTYPE=C Versions of packages dpkg depends on: ii dselect 1.10.9 a user tool to manage Debian packa ii libc6 2.3.1-16 GNU C Library: Shared libraries an - -- no debconf information - -- arthur - arthur@tiefighter.et.tudelft.nl - http://tiefighter.et.tudelft.nl/~arthur -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE+nsgXVYan35+NCKcRAjnlAKCMD55RiYZkDvlxUsx0wF4262g7dQCg6MXm L/xrZeeCEC0z0cQ73cN2HP4= =/KnU -----END PGP SIGNATURE-----
Attachment:
statusoption.patch.gz
Description: Binary data