From 35d965dbbacaf187928a16797e5043dfdcbdfe88 Mon Sep 17 00:00:00 2001 From: Ruben Schuller Date: Sun, 30 Oct 2022 14:22:06 +0100 Subject: network/radicale: Updated for version 3.1.8. Signed-off-by: Willy Sudiarto Raharjo --- network/radicale/rc.radicale | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 network/radicale/rc.radicale (limited to 'network/radicale/rc.radicale') diff --git a/network/radicale/rc.radicale b/network/radicale/rc.radicale new file mode 100755 index 000000000000..3fb0515ec2aa --- /dev/null +++ b/network/radicale/rc.radicale @@ -0,0 +1,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 -- cgit v1.2.3