mirror of
https://github.com/Ponce/slackbuilds
synced 2024-12-01 01:00:03 +01:00
2525682496
Signed-off-by: bedlam <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
28 lines
467 B
Bash
28 lines
467 B
Bash
#!/bin/sh
|
|
|
|
# start/stop/restart the yabsm daemon.
|
|
|
|
usage="usage: $0 start|stop|restart"
|
|
|
|
if [ $# != 1 ]; then
|
|
echo "$usage"
|
|
exit 1
|
|
fi
|
|
|
|
case "$1" in
|
|
'start')
|
|
echo "Starting yabsm daemon: /usr/bin/yabsm"
|
|
/usr/bin/yabsm daemon start
|
|
;;
|
|
'stop')
|
|
echo "Stopping yabsm daemon: /usr/bin/yabsm"
|
|
/usr/bin/yabsm daemon stop
|
|
;;
|
|
'restart')
|
|
echo "Restarting yabsm daemon: /usr/bin/yabsm"
|
|
/usr/bin/yabsm daemon restart
|
|
;;
|
|
*)
|
|
echo "$usage"
|
|
exit 1
|
|
esac
|