Hello, When i emerge net-nntp/nzbget-0.8.0 All are good, service start normally, i can use normally nzbget. When i reboot the computer, the service start crashed (with default user nzbget group nzbget) with no log Reproductible always The work around is to re-emerge again net-nntp/nzbget-0.8.0 before use it Thanks.
How does it crash? Just terminate normally, or segfault? In case of segfault, can you get a backtrace?
(In reply to comment #1) > How does it crash? Just terminate normally, or segfault? In case of > segfault, can you get a backtrace? haven't got any error log After reboot : # /etc/init.d/nzbget status -> crashed # /etc/init.d/nzbget stop -> ok # /etc/init.d/nzbget start -> ok ---- wait few sec ..... # /etc/init.d/nzbget status -> crashed if i wan't use it i need to re emerge it, and start it
hi, check that /var/run/nzbget is created and with the right permissions (maybe nzbget:nzbget) ! It wasn't on my server so nzbget crashed Regars, Loux
(In reply to comment #3) > hi, > check that /var/run/nzbget is created and with the right permissions (maybe > nzbget:nzbget) ! > It wasn't on my server so nzbget crashed > Regars, > Loux Thanks you for your reply! When i emerge nzbget have this message : * Messages for package net-nntp/nzbget-0.8.0: * One or more symlinks to directories have been preserved in order to * ensure that files installed via these symlinks remain accessible. This * indicates that the mentioned symlink(s) may be obsolete remnants of an * old install, and it may be appropriate to replace a given symlink with * the directory that it points to. * * /var/run Effectively my entire /var/run folder was symlinked? and no /var/run/nzbget folder inside. I do not understand how that can be arrived i delete the /var/run symlink and i make a big error, that kill my MySQL and other services they won't be restart after reboot.... now all are ok and NZBget works fine at every reboot !
I would say the problem is new openrc which uses tmpfs for /run (and /var/run symlink to it) directory and nzbget configuration as patched in 0.8.0 ebuild: LockFile=/var/run/nzbget/nzbget.pid While directory will be created it will be missing upon reboot, thus nzbget will run after install, but not upon reboot. While looking at other services in /etc/init.d i find that /var/run/<name>.pid is used for storing daemon process pid. Note that i have no idea how openrc manages boot and /run mounting, but in my case /var/run/nzbget is missing upon reboot.
*** Bug 446574 has been marked as a duplicate of this bug. ***
Ok, my other bug is marked as duplicate to this, but this bug is not resolved! Please mark it as such.
*** Bug 450488 has been marked as a duplicate of this bug. ***
keepdir /var/log/nzbget /run/nzbget That's the wrong fix.
As pointed out in bug 450488 the directory must be created on each start() with the right ownership. Also note that nzbget-9.0.ebuild is also affected by this bug. The specific dodir/fowners/fperms lines should be removed from the ebuilds.
Fixed in 9.0 on re-emerge and 9.1_pre538.