diff -u cron-3.0pl1/debian/changelog cron-3.0pl1/debian/changelog --- cron-3.0pl1/debian/changelog +++ cron-3.0pl1/debian/changelog @@ -1,3 +1,13 @@ +cron (3.0pl1-100ubuntu2) hardy; urgency=low + + * debian/cron.init: + - LSB requires "status" section in init scripts (LP: #201504) + - LSB exit code 5="program is not installed" + * debian/control: + - Fix maintainer field, Debian -> Ubuntu + + -- Dustin Kirkland Wed, 12 Mar 2008 15:15:33 -0500 + cron (3.0pl1-100ubuntu1) feisty; urgency=low * Resynchronise with Debian. Remaining changes: diff -u cron-3.0pl1/debian/control cron-3.0pl1/debian/control --- cron-3.0pl1/debian/control +++ cron-3.0pl1/debian/control @@ -1,7 +1,8 @@ Source: cron Section: admin Priority: important -Maintainer: Javier Fernandez-Sanguino Pen~a +Maintainer: Ubuntu Core Developers +XSBC-Original-Maintainer: Javier Fernandez-Sanguino Pen~a Uploaders: Steve Greenland Standards-Version: 3.6.1 Build-Depends: debhelper, libpam0g-dev, libselinux1-dev [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64] diff -u cron-3.0pl1/debian/cron.init cron-3.0pl1/debian/cron.init --- cron-3.0pl1/debian/cron.init +++ cron-3.0pl1/debian/cron.init @@ -15,7 +15,7 @@ ### END INIT INFO -test -f /usr/sbin/cron || exit 0 +test -f /usr/sbin/cron || exit 5 #LSBNAMES='-l' # Uncomment for LSB name support in /etc/cron.d/ @@ -39,7 +39,17 @@ # cron reloads automatically log_end_msg 0 ;; -*) log_action_msg "Usage: /etc/init.d/cron {start|stop|restart|reload|force-reload}" +status) + pidofproc /usr/sbin/cron >/dev/null + status=$? + if [ $status -eq 0 ]; then + log_success_msg "Cron is running." + else + log_failure_msg "Cron is not running." + fi + exit $status + ;; +*) log_action_msg "Usage: /etc/init.d/cron {start|stop|restart|reload|force-reload|status}" exit 2 ;; esac