Package: backuppc
Version: 3.3.2-2

reloading backuppc daemon with systemd fails:

$ service backuppc reload

or

$ systemctl reload backuppc

output:

Job for backuppc.service failed.
See "systemctl status backuppc.service" and "journalctl -xe" for details.

Error from the journal:

Reloading backuppc configuration files...start-stop-daemon: matching only
on non-root pidfile /var/run/backuppc/BackupPC.pid is insecure
backuppc.service: Control process exited, code=exited,
status=2/INVALIDARGUMENT\

Suggested patch to fix this issue:

--- /etc/init.d/backuppc.orig   2019-11-20 13:32:02.016681521 +0100
+++ /etc/init.d/backuppc        2019-11-20 13:32:13.028672541 +0100
@@ -81,7 +81,7 @@
     ;;
   reload|force-reload)
     log_begin_msg "Reloading $NAME configuration files..."
-    start-stop-daemon --stop --pidfile /var/run/backuppc/BackupPC.pid \
+    start-stop-daemon --stop --pidfile /var/run/backuppc/BackupPC.pid -u
$USER \
                            --signal 1
     log_end_msg $?
     ;;

Reply via email to