init script cannot stop pid process
Hello,
I make darkhttpd package and have a small issue.
I prepare init script:
https://github.com/mati75/darkhttpd/blob/master/debian/init and for run
script with start parameter is working fine:
www-data 4615 4615 0.0 1 0.1 12456 1548 ? Ss 22:13
0:00 /usr/bin/darkhttpd /var/www --daemon --uid www-data --gid www-data
--log /var/log/darkhttpd/access.log
But with stop and status is some issue:
status all time return:
[FAIL] darkhttpd is not running ... failed!
stop:
[ ok ] Stopping web server: darkhttpd.
and here the point is darkhttpd still works.
Next fact is that I don't see anything pid file in /run which should be
making by init script and I don't know where I make mistake.
darkhttpd can provides pidfile by itself, but where I see that problem:
error: can't create pidfile /var/run/darkhttpd.pid: Permission denied
Have someone idea how to fix that?
I tests script on unstable freebsd-amd64.
Mateusz
Reply to: