/var/run can be mounted tmpfs and cleared during a reboot. Hence, programs (or their init scripts) should not rely on dirs under /var/run and should create them if necessary instead. logitechmediaserver fails to start when /var/run/logitechmediaserver is missing. The attached patch to the init script calls checkpath to ensure this directory exists when the service is started. Reproducible: Always Steps to Reproduce: 1. remove /var/run/logitechmediaserver 2. try to start the service Actual Results: logitechmediaserver fails to start Expected Results: logitechmediaserver should start This is a new bug based on 402399, which was the same issue for squeezeboxserver.
Created attachment 308763 [details, diff] patch to files/logitechmediaserver.init.d
Created attachment 309079 [details, diff] checkpath patch to logitechmediaserver.init.d Thanks for the patch. I've looked at this and tested it and it's working fine. I did a little reading around and I believe start_pre() is the correct place to do this correction (there are a number of other init scripts that do this). My version which takes this approach is attached. Joe, I think this is OK to apply as a minor update.
Looks great - committed! No version bump, since the problem case is probably a bit rare, and they'll likely find this bug and re-install.