Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 402399 - media-sound/squeezeboxserver fails to start when /var/run/squeezeboxserver is missing
Summary: media-sound/squeezeboxserver fails to start when /var/run/squeezeboxserver is...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Joe Peterson (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: keepdir-var-run_lock
  Show dependency tree
 
Reported: 2012-02-06 13:40 UTC by Roy Thompson
Modified: 2012-04-12 22:46 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to files/squeezeboxserver.init.d (squeeboxserver-init.patch,504 bytes, patch)
2012-02-06 13:41 UTC, Roy Thompson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Roy Thompson 2012-02-06 13:40:56 UTC
/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.

squeezeboxserver fails to start when /var/run/squeezeboxserver is missing:


[12-02-06 13:02:42.1336] main::init (326) Starting Squeezebox Server (v7.5.5, r32671, Mon Jul 11 12:59:44 MDT 2011) perl 5.012004
[12-02-06 13:02:42.2548] Carp::croak (62) Warning: write_file '/var/run/squeezeboxserver/squeezeboxserver.pid' - sysopen: No such file or directory at /usr/sbin/squeezeboxserver line 1060

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/squeezeboxserver
2. try to start the service
Actual Results:  
squeezeboxserver fails to start

Expected Results:  
squeezeboxserver should start
Comment 1 Roy Thompson 2012-02-06 13:41:52 UTC
Created attachment 301033 [details, diff]
patch to files/squeezeboxserver.init.d
Comment 2 Joe Peterson (RETIRED) gentoo-dev 2012-04-12 22:46:42 UTC
Package has been masked for removal - please reopen for:

    media-sound/logitechmediaserver-bin

if still an issue there.