19 lines
442 B
Bash
Executable file
19 lines
442 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# read the default setting file, if it exists
|
|
[ -e /etc/default/cryptobox ] && . /etc/default/cryptobox
|
|
|
|
# set CONF_FILE to default value, if not configured in /etc/default/cryptobox
|
|
CONF_FILE=${CONF_FILE:-/etc/cryptobox/cryptobox.conf}
|
|
|
|
# parse config file
|
|
if test -e "$CONF_FILE"
|
|
then . "$CONF_FILE"
|
|
else echo "[$(basename $0)] - configuration file ($CONF_FILE) not found!" >&2
|
|
exit 1
|
|
fi
|
|
|
|
invoke-rc.d cryptobox stop
|
|
|
|
true
|
|
|