From: Jackie Huang Date: Mon, 19 Aug 2013 09:25:52 +0000 (-0400) Subject: at: add init.d/atd status command for LSB compliance X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~36244 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c19592afac6b38df7038da02bcda26dc28b4e4c;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git at: add init.d/atd status command for LSB compliance Signed-off-by: Li Wang Signed-off-by: Jackie Huang Signed-off-by: Saul Wold --- diff --git a/meta/recipes-extended/at/files/S99at b/meta/recipes-extended/at/files/S99at index 386f8a497e4..eca379b3cd9 100644 --- a/meta/recipes-extended/at/files/S99at +++ b/meta/recipes-extended/at/files/S99at @@ -5,6 +5,9 @@ umask 077 +# Source function library. +. /etc/init.d/functions + start() { echo -n "Starting atd: " start-stop-daemon --start --quiet --pidfile /var/run/atd.pid --background --exec /usr/sbin/atd -- -f @@ -30,8 +33,11 @@ case "$1" in restart|reload) restart ;; + status) + status /usr/sbin/atd + ;; *) - echo $"Usage: $0 {start|stop|restart}" + echo $"Usage: $0 {start|stop|restart|status}" exit 1 esac