Your message dated Sat, 24 Oct 2009 10:21:59 +0300
with message-id <[email protected]>
and subject line nevermind
has caused the Debian Bug report #525461,
regarding init.d status support
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
525461: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=525461
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: anacron
Version: 2.3-13.1
Severity: wishlist
Tags: patch
Here is a patch to properly implement the status action of the init script.
diff -u anacron-2.3/debian/init.d anacron-2.3/debian/init.d
--- anacron-2.3/debian/init.d
+++ anacron-2.3/debian/init.d
@@ -45,10 +45,10 @@
log_end_msg 0
;;
status)
- exit 4
+ status_of_proc /usr/sbin/anacron anacron && exit 0 || exit $?
;;
*)
- echo "Usage: /etc/init.d/anacron {start|stop}"
+ echo "Usage: /etc/init.d/anacron {start|stop|status}"
exit 2
;;
esac
diff -u anacron-2.3/debian/control anacron-2.3/debian/control
--- anacron-2.3/debian/control
+++ anacron-2.3/debian/control
@@ -7,7 +7,7 @@
Package: anacron
Architecture: any
-Depends: ${shlibs:Depends}, debianutils (>= 1.7), ${misc:Depends}, lsb-base (>= 3.0-10)
+Depends: ${shlibs:Depends}, debianutils (>= 1.7), ${misc:Depends}, lsb-base (>= 3.2-13)
Replaces: pe
Recommends: cron (>= 3.0pl1-43), exim4 | mail-transport-agent, sysklogd | system-log-daemon
Suggests: powermgmt-base
--- End Message ---
--- Begin Message ---
This patch is wrong because anacron is not a continuously running
daemon.
--- End Message ---