cryptonas/cryptobox.conf.d/etc/rc2.d/S98cryptobox.sh

23 lines
292 B
Bash
Raw Normal View History

#!/bin/sh
set -eu
ACTION=help
[ $# -gt 0 ] && ACTION="$1"
case "$ACTION" in
start )
/scripts/cryptobox.sh services-up
;;
stop )
/scripts/cryptobox.sh services-down
;;
restart )
$0 stop
$0 start
;;
* )
echo "Syntax: `basename $0` { start | stop | restart }"
;;
esac