cryptonas/cryptobox.conf.d/etc/init.d/cb-services
2005-07-21 20:09:39 +00:00

25 lines
303 B
Bash
Executable file

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