Package: burp
Version: 2.0.54-1
Severity: normal

Hi,

When trying to start burp automatically upon boot the PID file directory
isn't automatically created, resulting in:

root@backup:~# service burp status
* burp.service - LSB: backup and restore program
   Loaded: loaded (/etc/init.d/burp; generated; vendor preset: enabled)
   Active: active (exited) since Fri 2018-01-05 11:40:28 CET; 2h 8min ago
     Docs: man:systemd-sysv-generator(8)
    Tasks: 0 (limit: 4915)
   CGroup: /system.slice/burp.service

Jan 05 11:40:28 backup systemd[1]: Starting LSB: backup and restore program...
Jan 05 11:40:28 backup burp[701]: Could not open lock file 
/var/run/burp/burp.server.pid: No such file or directory
Jan 05 11:40:28 backup burp[701]: Could not get lockfile.
Jan 05 11:40:28 backup burp[701]: Maybe you do not have permissions to write to 
/var/run/burp/burp.server.pid.
Jan 05 11:40:28 backup burp[663]: Starting burp : failed!
Jan 05 11:40:28 backup systemd[1]: Started LSB: backup and restore program.
root@backup:~#

Since this seems to be a race condition, starting the daemon with the
same script later does work ok:
root@backup:~# service burp restart
root@backup:~# service burp status
* burp.service - LSB: backup and restore program
   Loaded: loaded (/etc/init.d/burp; generated; vendor preset: enabled)
   Active: active (running) since Fri 2018-01-05 13:48:56 CET; 1s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 5928 ExecStop=/etc/init.d/burp stop (code=exited, status=0/SUCCESS)
  Process: 5936 ExecStart=/etc/init.d/burp start (code=exited, status=0/SUCCESS)
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/burp.service
           `-5945 /usr/sbin/burp -c /etc/burp/burp-server.conf

Jan 05 13:48:56 backup systemd[1]: Stopped LSB: backup and restore program.
Jan 05 13:48:56 backup systemd[1]: Starting LSB: backup and restore program...
Jan 05 13:48:56 backup burp[5936]: Starting burp :.
Jan 05 13:48:56 backup systemd[1]: Started LSB: backup and restore program.
root@backup:~#

Maybe this should be circumvented by creating a systemd service with proper
dependency chain or just hotfixed by the init script creating the required
directory before the start-stop-daemon.

Best,
Kilian

Reply via email to