[FEATURE REQUEST] ability to specify pidfile
Posted: December 7th, 2013, 4:50 pm
Currently it is not possible to specify a pidfile. You can specify a directory with --pid, but the pidfile's name is dynamic, based on the listening port in the format of sabnzbd-port.pid ex, sabnzbd-8080.pid
This is extremely inconvenient for OS init scripts / rc scripts. I've recently revamped the FreeBSD rc script and had to attempt to piece together the pid file with this mess:
pidfile=/var/run/sabnzbd/sabnzbd-$(grep -m1 ^port ${sabnzbd_conf_dir}/sabnzbd.ini | tr -dc '[0-9]').pid
I would really appreciate a more reliable solution, namely the ability to specify the actual pidfile when starting the daemon.
Thanks
This is extremely inconvenient for OS init scripts / rc scripts. I've recently revamped the FreeBSD rc script and had to attempt to piece together the pid file with this mess:
pidfile=/var/run/sabnzbd/sabnzbd-$(grep -m1 ^port ${sabnzbd_conf_dir}/sabnzbd.ini | tr -dc '[0-9]').pid
I would really appreciate a more reliable solution, namely the ability to specify the actual pidfile when starting the daemon.
Thanks
