mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-28 10:02:43 +01:00
8d3864373a
Files in the repo should be 0644. Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
31 lines
466 B
Bash
31 lines
466 B
Bash
#!/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
|