Created attachment 167114 [details]
example of an init script
the script for starting/stopping nzbget should be more "rc.subr" friendly if one wants to run nzbget as a non-root user (as it should).
In this sample, I put "nobody"/"nobody", but one could create a user named nzbget with proper group.
Optionally, the package should create a user nzbget if non exists and use that in the initscript.
Just a suggestion. I manually replace the script with each update since the package overwrites it.
The standard way of launching nzbget as a different user is to use the "DaemonUsername" setting in nzbget.conf. I believe this is why the rc script doesn't create its own user or offer nzbget_user setting by default.
Why, I wonder how I missed that flag in nzbget.conf.
I guess you can close the bug and maybe highlight the flag in the post-install output?
A commit references this bug:
Date: Tue Mar 29 14:05:14 UTC 2016
New revision: 412111
news/nzbget: Add pkg-message to inform users how to drop privs