Package: radicale
Version: 3.0.6-3
Severity: normal
Tags: patch

Trying to start radicale after upgrading to buster fails.
I also tried purging and reinstalling the package but it still does not work:

# /etc/init.d/radicale start
Starting Radicale CalDAV server : radicale.

# /etc/init.d/radicale status
radicale is not running ... failed!

The attached patch makes it work. It is taken from this bug report after 
adapting it
https://github.com/Kozea/Radicale/issues/1188


-- 
GPG-Key: 0xA3FD0DF7 - 9F73 032E EAC9 F7AD 951F  280E CB66 8E29 A3FD 0DF7
Debian User and Developer.
Homepage: www.foolab.org
--- radicale~	2023-06-23 00:18:59.008000000 +0000
+++ radicale	2023-06-23 06:52:59.280000000 +0000
@@ -68,11 +68,11 @@
 	fi
 
 	start-stop-daemon --start --quiet --startas $DAEMON \
-		--name $NAME --test > /dev/null \
+		--exec $DAEMON --test > /dev/null \
 		|| return 1
-	start-stop-daemon --start --quiet --startas $DAEMON \
-		--name $NAME --umask 0027 --chuid $DAEMON_UID:$DAEMON_GID -- \
-		$RADICALE_OPTS \
+	start-stop-daemon --start --quiet --startas $DAEMON --background --no-close \
+		--exec $DAEMON --umask 0027 --chuid $DAEMON_UID:$DAEMON_GID -- \
+		$RADICALE_OPTS >> /var/log/radicale.log 2>&1 \
 		|| return 2
 }
 
@@ -86,7 +86,7 @@
 	#   1 if daemon was already stopped
 	#   2 if daemon could not be stopped
 	#   other if a failure occurred
-	start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --name $NAME
+	start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --user $DAEMON_UID
 }
 
 case "$1" in

Attachment: signature.asc
Description: PGP signature

Reply via email to