Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 157404 - media-sound/slimserver-6.5.0 won't start - bad logfile in init script
Summary: media-sound/slimserver-6.5.0 won't start - bad logfile in init script
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Tom Payne (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-07 00:04 UTC by Andrew Kay
Modified: 2006-12-12 14:53 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Kay 2006-12-07 00:04:32 UTC
Upon trying to restart slimserver after an upgrade I get the following error message:

------
rikku mysql # /etc/init.d/slimserver start
 * Starting slimserver ...
Can't write to >>/var/log/slimserver: Is a directory at /opt/slimserver/slimserver.pl line 838.                  [ !! ]
------

A quick cat of /etc/init.d/slimserver shows the following:

------
  --logfile /var/log/slimserver \
------

Note that --logfile points to a directory, not a file. The solution is to replace the affected line with:

------
  --logfile /var/log/slimserver/slimserver.log \
------

which points to the correct log file.
Comment 1 Tom Payne (RETIRED) gentoo-dev 2006-12-12 14:53:32 UTC
Are you sure about this?  It works for me, and I've had a look at the SlimServer source code and it very much looks like --logfile expects a file, not a directory.

My hypothesis is that your old installation of slimserver had a directory /var/log/slimserver, and because of the way portage upgrades things (adding new before removing old) this directory blocked the installation of the /var/log/slimserver file.

Please re-open this bug if this analysis is not correct.
Cheers,
Tom