Hello, I suggest fixing the problem in the following way, since dpkg's start-stop-daemon supports the --output option (which redirects both stdout and stderr).
Proposed patch: --- radicale.original 2022-11-16 20:15:19.000000000 +0000 +++ radicale.proposedfix 2024-06-12 20:41:57.389487566 +0000 @@ -22,6 +22,7 @@ RUNDIR=/run/$NAME CALDIR=/var/lib/$NAME LOGDIR=/var/log/$NAME +LOGFILE=/var/log/$NAME/$NAME.log SCRIPTNAME=/etc/init.d/$NAME # Exit if the package is not installed @@ -70,8 +71,9 @@ start-stop-daemon --start --quiet --startas $DAEMON \ --exec $DAEMON --test > /dev/null \ || return 1 - start-stop-daemon --start --quiet --startas $DAEMON --background \ - --exec $DAEMON --umask 0027 --chuid $DAEMON_UID:$DAEMON_GID -- \ + start-stop-daemon --start --quiet --startas $DAEMON \ + --exec $DAEMON --umask 0027 --chuid $DAEMON_UID:$DAEMON_GID \ + --background --no-close --output $LOGFILE -- \ $RADICALE_OPTS \ || return 2 } Suggested earlier here: https://github.com/Kozea/Radicale/discussions/1414#discussioncomment-9756389 Regards, -- Jelle Geerts