You are not logged in.

#1 2015-05-16 10:02:09

PUE
Member
From: Earth/Europe/Austria
Registered: 2009-05-09
Posts: 51

MPD does not receive SIGTERM on shutdown -> state file is not written

Hi there.
I'm running mpd as a user. It is started through ~/.bash_profile.
The trouble is, when I shut the machine down, mpd does not write the state file, hence on reboot the previous state is gone.
I tested whether MPD behaves correctly when it receives the signals, and it does. The state file is written when I send a SIGTERM, it is not written when I send a SIGKILL.
Shouldn't MPD receive a SIGTERM followed by a  SIGKILL on shutdown? What is going wrong?
Btw., I use openbox as WM and shut down from the commandline using 'sudo shutdown -h now'.

Offline

Board footer

Powered by FluxBB