#1038930 sysvinit script not starting radicale

#1038930#5
Date:
2023-06-23 08:17:02 UTC
From:
To:
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

#1038930#10
Date:
2024-07-01 14:21:02 UTC
From:
To:
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,
#1038930#15
Date:
2024-07-01 15:58:50 UTC
From:
To:
Hi Jelle,

Quoting Jelle Geerts (2024-07-01 16:21:02)

Thanks for the bugreport, and the proposed fix.

I've already applied this proposed fix (from the earlier upstream post)
and it will appear in the nex upcoming packaging release.


 - Jonas