blob: a44a0b7df8e2fbc20594d37119b27689deea2c14 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/sh
canna=@PREFIX@/sbin/cannaserver
case "$1" in
start)
if [ -f $canna ]; then
rm -f /var/run/canna/Canna.pid
mkdir -p /var/run/canna
touch /var/log/CANNA0msgs
chown bin:bin /var/run/canna /var/log/CANNA0msgs
echo -n ' Canna'
$canna
fi
;;
stop)
@PREFIX@/sbin/cannakill && echo -n ' Canna'
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
exit 64
;;
esac
exit 0
|