There are some differences between starting the script as root and
running slimserver as root. First, the script starts slimserver as user
slimserver (the --chuid $SLIMUSER parameter, $SLIMUSER resolves to
"slimserver"), the script sets custom locations for CACHEDIR
(/var/cache/slimserver vs the default ~/cache), LOGFILE and PREFSFILE
(don't recall where the latter two will be placed by default).
Try the following:
Copy the code below into a new file and make it executable (chmod +x
<filename>)
First, run this batchfile as user slimserver (as root type su
slimserver, verify your identity by typing id). You should experience
your one-track-only-problem. Now stop slimserver and type exit, you
should now be root again, verify by typing id. Now run the script as
root. If your problem is gone then have a look at the permissions of
the following files and directories:
/etc/slimserver/slimserver.pref
/var/log/slimserver/slimserver.log
/var/cache/slimserver
The user slimserver needs write access to these files and directories.
Code:
--------------------
#!/bin/sh
set -e
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
NAME=slimserver
PREFSFILE=/etc/$NAME/$NAME.pref
LOGFILE=/var/log/$NAME/$NAME.log
CACHEDIR=/var/cache/$NAME
/usr/sbin/slimserver --prefsfile $PREFSFILE \
--logfile $LOGFILE \
--cachedir $CACHEDIR
--------------------
If you are unsure what the permissions on the files/directories should
be post the current permissions here. Please also post the output of id
slimserver
-s.
--
slimpy
------------------------------------------------------------------------
slimpy's Profile: http://forums.slimdevices.com/member.php?userid=1524
View this thread: http://forums.slimdevices.com/showthread.php?t=22857
_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/beta