slackbuilds_ponce/system/yabsm/rc.yabsm
Nicholas Hubbard 2525682496
system/yabsm: Added (yet another btrfs snapshot manager)
Signed-off-by: bedlam <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2023-04-01 09:14:09 +07:00

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