blob: 3fb0515ec2aafa0381020285515007e90f992465 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/bin/sh
# start/stop/restart radicale
radicale_start() {
daemon -n radicale -u radicale -o local1.warning -e "HOME=/var/lib/radicale" -D /var/lib/radicale -- python3 -m radicale
}
radicale_stop() {
daemon -n radicale -u radicale --stop
}
radicale_restart() {
radicale_stop
sleep 1
radicale_start
}
case "$1" in
'start')
radicale_start
;;
'stop')
radicale_stop
;;
'restart')
radicale_restart
;;
*)
echo "usage $0 start|stop|restart"
esac
|