cryptonas-branches/v0.2.1/cbox-tree.d/etc/init.d/cb-services.sh
2005-10-17 11:59:08 +00:00

25 lines
323 B
Bash
Executable file

#!/bin/sh
set -eu
# parse config file
. /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