start-stop-daemon ignores the pid file path, services like lighttpd crashed due insufficient parameters on rc files start-stop-daemon
many services cannot change the pdi file path due it crashed after some seconds .. it seems start-stop-daemon ignores the pid file path, if a directory is involving?: if we move the pid file to its own directory for lighttpd service, it crashed after some seconds..
if admin user try to move as must be it crashed also for others services
how to reproduce:
apk add lighttpd procps coreutils sed sed -i 's#.*server.pid-file.*=.*#server.pid-file = "/run/lighttpd/lighttpd.pid"#g' /etc/lighttpd/lighttpd.conf service lighttpd restart
service started in good shape, but alpine's openrc reports crash after seconds in alpine 3.10, 3.11, 3.12 so a stop command is ignored! check:
root@monitor:/etc/init.d$ service lighttpd status * status: crashed root@monitor:/etc/init.d$ ps -lxa | grep lighttp 1 102 3873 1 20 0 4368 420 - S ? 0:00 /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf 0 0 3899 3070 20 0 1576 4 - S+ pts/1 0:00 grep lighttp
this is also happened in others packages also in debian i solved using the okonoko option but in alpines is ignored!
This picture is on 3.13