On Sat, Dec 30 2017, Bill Allombert wrote: > I have uploaded consolation_0.0.6~pre1 with the --no-daemon option. > Could you write a patch to fix debian/init.d ? > I could do it but then I am not in a good position to test the result.
Sorry for the delay. Attaching: consolation.path: diff for init.d/consolation to make use of --no-daemon and correct pid file (provided by start-stop-daemon). Tested and works correctly now. consolation.service: the same for systemd, using --no-daemon and Type=simple (no guesswork). Also tested.
--- consolation.Orig 2018-01-20 16:09:04.708448392 +0100 +++ consolation 2018-01-20 16:15:18.366830577 +0100 @@ -47,9 +47,8 @@ # 2 if daemon could not be started start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ || return 1 - start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ - $DAEMON_OPTS \ - || return 2 + start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile --background \ + --exec $DAEMON -- --no-daemon $DAEMON_OPTS || return 2 } #
consolation.service
Description: Binary data