savonet/liquidsoap-daemon

Can't open PID file after start: No such file or directory

Closed this issue · 1 comments

After pulling v1.0.0 the PID file is no longer generated, resulting in systemd failing to start and complaining about the missing file:

~$ tree liquidsoap-daemon/
liquidsoap-daemon/
├── CHANGES
├── daemonize-liquidsoap.sh
├── liquidsoap.initd.in
├── liquidsoap.launchd.in
├── liquidsoap.logrotate.in
├── liquidsoap.systemd.in
├── log
├── main.liq-liquidsoap.logrotate
├── main.liq-liquidsoap.systemd
├── opam
├── pid
├── README.md
└── script
    ├── main.liq
    └── main.liq-run.liq

systemd log:

Aug 22 18:33:33 set systemd[1]: Starting main.liq Liquidsoap daemon...
Aug 22 18:33:33 set systemd[1]: main.liq-liquidsoap.service: Can't open PID file /home/dat/liquidsoap-daemon/pid/main.liq-run.pid (yet?) after start: No such file or directory
Aug 22 18:33:33 set systemd[1]: main.liq-liquidsoap.service: Supervising process 32163 which is not our child. We'll most likely not notice when it exits.
Aug 22 18:33:33 set systemd[1]: Started main.liq Liquidsoap daemon.
Aug 22 18:33:34 set systemd[1]: main.liq-liquidsoap.service: Service hold-off time over, scheduling restart.
Aug 22 18:33:34 set systemd[1]: main.liq-liquidsoap.service: Scheduled restart job, restart counter is at 1.

...

Aug 22 18:33:37 set systemd[1]: Stopped main.liq Liquidsoap daemon.
Aug 22 18:33:37 set systemd[1]: Starting main.liq Liquidsoap daemon...
Aug 22 18:33:37 set systemd[1]: main.liq-liquidsoap.service: Can't open PID file /home/dat/liquidsoap-daemon/pid/main.liq-run.pid (yet?) after start: No such file or directory
Aug 22 18:33:37 set systemd[1]: Started main.liq Liquidsoap daemon.
Aug 22 18:33:38 set systemd[1]: main.liq-liquidsoap.service: Service hold-off time over, scheduling restart.
Aug 22 18:33:38 set systemd[1]: main.liq-liquidsoap.service: Scheduled restart job, restart counter is at 5.
Aug 22 18:33:38 set systemd[1]: Stopped main.liq Liquidsoap daemon.
Aug 22 18:33:38 set systemd[1]: main.liq-liquidsoap.service: Start request repeated too quickly.
Aug 22 18:33:38 set systemd[1]: main.liq-liquidsoap.service: Failed with result 'start-limit-hit'.
Aug 22 18:33:38 set systemd[1]: Failed to start main.liq Liquidsoap daemon.
~$ hostnamectl
   Static hostname: set
         Icon name: computer-vm
           Chassis: vm
        Machine ID: ---
           Boot ID: ---
    Virtualization: kvm
  Operating System: Ubuntu 18.04.3 LTS
            Kernel: Linux 4.15.0-58-generic
      Architecture: x86-64

This error was due to an OGG file with an MP3 extension that was requested for a security fallback. Closing it as it is resolved now. Many thanks for this awesome sccript! <3