at: add init.d/atd status command for LSB compliance
(From OE-Core rev: 9c19592afac6b38df7038da02bcda26dc28b4e4c) Signed-off-by: Li Wang <li.wang@windriver.com> Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
1b125078b7
commit
6d15552f8c
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue