From 6eb6ef1b6a1e924c0e82564dbc61475a8bc5e8d5 Mon Sep 17 00:00:00 2001 From: Leonardo Arena Date: Fri, 14 Dec 2018 08:50:17 +0000 Subject: community/backuppc: no longer maintained --- community/backuppc/fix-pidfile-path.patch | 35 +++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 community/backuppc/fix-pidfile-path.patch (limited to 'community/backuppc/fix-pidfile-path.patch') diff --git a/community/backuppc/fix-pidfile-path.patch b/community/backuppc/fix-pidfile-path.patch new file mode 100644 index 0000000000..ad76a53961 --- /dev/null +++ b/community/backuppc/fix-pidfile-path.patch @@ -0,0 +1,35 @@ +--- a/bin/BackupPC ++++ b/bin/BackupPC +@@ -363,11 +363,11 @@ + # Write out our initial status and save our PID + # + StatusWrite(); +- unlink("$LogDir/BackupPC.pid"); +- if ( open(PID, ">", "$LogDir/BackupPC.pid") ) { ++ unlink("/run/backuppc/BackupPC.pid"); ++ if ( open(PID, ">", "/run/backuppc/BackupPC.pid") ) { + print(PID $$); + close(PID); +- chmod(0444, "$LogDir/BackupPC.pid"); ++ chmod(0444, "/run/backuppc/BackupPC.pid"); + } + + # +@@ -1846,7 +1846,7 @@ + close(LOG); + LogFileOpen(); + print(LOG "Fatal error: unhandled signal $SigName\n"); +- unlink("$LogDir/BackupPC.pid"); ++ unlink("/run/backuppc/BackupPC.pid"); + confess("Got new signal $SigName... quitting\n"); + } else { + $SigName = shift; +@@ -1968,7 +1968,7 @@ + } + delete($Info{pid}); + StatusWrite(); +- unlink("$LogDir/BackupPC.pid"); ++ unlink("/run/backuppc/BackupPC.pid"); + exit(1); + } + -- cgit v1.2.3