cryptonas/cryptobox.conf.d/etc/init.d/cb-services.sh
lars fda9e3f445 moved validation from cbox to the host
logging greatly improved
background problem of initialization solved
umount_crypto cleaned
automatic style importing for validation
2005-07-25 11:02:47 +00:00

26 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