From 9c19592afac6b38df7038da02bcda26dc28b4e4c Mon Sep 17 00:00:00 2001 From: Jackie Huang Date: Mon, 19 Aug 2013 05:25:52 -0400 Subject: 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 --- meta/recipes-extended/at/files/S99at | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'meta/recipes-extended') diff --git a/meta/recipes-extended/at/files/S99at b/meta/recipes-extended/at/files/S99at index 386f8a497e..eca379b3cd 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 -- cgit 1.2.3-korg