stinga Wrote: 
> On 14/10/05 11:55:18, steve_uk wrote:
> > 
> > stinga Wrote:
> > > On 14/10/05 11:33:24, steve_uk wrote:
> > > >
> > > > mherger Wrote:
> > > > > > Thanks for your reply, I deleted /etc/slimserver.conf and
> ran
> > > > >
> > > > > Are you sure there's nothing slimserver related in /root?
> > > > >
> > > > >
> > > >
> > > > I don't think so. The contents of the folder are as follows:
> > > >
> > > > linux:~ # ls
> > > > .              .Xauthority    .ethereal  .gtk_qt_engine_rc 
> .mcop
> > > > .qt          .wapi           .xauthDLkoP7      mbox
> > > > ..             .bash_history  .exrc      .kbd
> > .mcoprc
> > > > .skel        .windows-label  .xsession-errors  usr
> > > > .ICEauthority  .cvspass       .fvwm      .kde
> > .mozilla
> > > > .subversion  .wine           Desktop
> > > > .X.err         .dmrc          .gnupg     .local             . 
> > ncftp
> > > > .thumbnails  .xauth19NzyO    bin
> > > >
> > > >
> > > > Sorry about the formatting!
> > > >
> > > > Steve
> > >
> > >
> > > Try ls -l :-)
> > >
> > > What user are you running slimserver as?
> > > Why can't you run slimerver as root at boot time?
> > > I know it is a securty risk but heck...
> > 
> > ls -l oh aye!
> > 
> > linux:~ # ls -l
> > total 89
> > drwx------  20 root root   912 Oct 14 11:29 .
> > drwxr-xr-x  22 root root   512 Oct 13 19:07 ..
> > -rw-------   1 root root   376 Oct 13 19:51 .ICEauthority
> > -rw-r--r--   1 root root  2101 Sep 19 22:48 .X.err
> > -rw-------   1 root root     0 Oct  4 18:42 .Xauthority
> > -rw-------   1 root root 13415 Oct 14 10:51 .bash_history
> > -rw-------   1 root root    57 Jul 25 19:53 .cvspass
> > -rw-------   1 root root    26 Oct  4 18:35 .dmrc
> > drwxr-xr-x   2 root root    72 Aug 10 19:45 .ethereal
> > -rw-r--r--   1 root root  1124 Feb 28  2000 .exrc
> > drwxr-xr-x   2 root root    48 Jul 17 12:10 .fvwm
> > drwx------   3 root root   280 Oct  4 18:35 .gnupg
> > -rw-r--r--   1 root root  1952 Aug 10 19:45 .gtk_qt_engine_rc
> > drwxr-xr-x   2 root root    80 Jul 17 12:09 .kbd
> > drwx------   4 root root   200 Sep 19 22:48 .kde
> > drwx------   3 root root    72 Jul 22 21:08 .local
> > drwxr-xr-x   3 root root   112 Jul 24 13:14 .mcop
> > -rw-------   1 root root    31 Oct  4 18:41 .mcoprc
> > drwx------   3 root root    72 Jul 17 12:15 .mozilla
> > drwxr-xr-x   2 root root    72 Oct 13 10:54 .ncftp
> > drwxr-xr-x   2 root root    48 Jul 18 22:08 .qt
> > drwxr-xr-x   2 root root   136 Sep 19 22:48 .skel
> > drwxr-xr-x   3 root root   152 Jul 25 19:49 .subversion
> > drwx------   4 root root    96 Jul 24 15:19 .thumbnails
> > drwxr-xr-x   2 root root    48 Jul 25 21:58 .wapi
> > -rw-r--r--   1 root root     5 Jul 27 10:09 .windows-label
> > drwxr-xr-x   4 root root   216 Jul 27 10:10 .wine
> > -rw-------   1 root root    50 Sep 18 15:40 .xauth19NzyO
> > -rw-------   1 root root    50 Sep 18 15:45 .xauthDLkoP7
> > -rw-------   1 root root  4450 Oct  4 18:42 .xsession-errors
> > drwx------   2 root root   112 Oct  4 18:36 Desktop
> > drwxr-xr-x   2 root root    48 Mar 23  2005 bin
> > -rw-------   1 root root 22641 Oct 13 19:22 mbox
> > drwxr-xr-x   3 root root    72 Jul 17 14:36 usr
> > linux:~ #
> > 
> > As for the run as root issue, I assumed that as I didn't run  
> > startproc
> > with -u root it would try and start with no user and fail.
> > 
> > I'm not sure (on thinking about it) why it didn't work. If I run the
> > slimserver init script without the -u SLIMSERVER_USER option from
> the
> > command line as root it works, however, from boot it didn't.
> > 
> > I've been running slimserver for months manually as root, but have
> > started to lock the machine down as there are a few services open to
> > the net now. I sat down thinking this would be an easy task
> (everyone
> > else seems to manage it ok as I can't find a similar problem in the
> > forum) and now have got rather stubborn about going back to running 
> 
> > it
> > as root! :p
> >
> 
> 
> What dir is that a listing of?
> 
> Is it really -u SLIMSERVER_USER I would have thought it should be -u  
> $SLIMSERVER_USER
> and $SLIMSERVER_USER would be set to something.
> 
> here is a bit of my startup script ...
> 
> start() {
> echo -n "Starting SlimServer: "
> daemon --user $SLIMSERVER_USER $SLIMSERVER_BIN
> $SLIMSERVER_ARGS
> RETVAL=$?
> echo
> [ $RETVAL -eq 0 ] && touch /var/lock/subsys/slimserver
> /etc/rc.d/init.d/slimp3slave start
> return $RETVAL
> #       echo_success
> }
> 
> 
> [root init.d]# cat /etc/sysconfig/slimserver
> # Edit this to suit your setup
> SLIMSERVER_USER="slimserver"
> SLIMSERVER_HOME="/usr/local/slimserver"
> SLIMSERVER_CFG="/etc/slimserver.conf"
> SLIMSERVER_LOG="/tmp/slimserver.log"
> SLIMSERVER_ARGS="--daemon --prefsfile=$SLIMSERVER_CFG --logfile= 
> $SLIMSERVER_LOG"
> 
> [root init.d]# ps -eaf|grep slim
> 501       2153     1 12 Oct02 ?        1-12:27:37 slimserver
> root      2159     1  0 Oct02 ?        00:00:00 slimp3slave -b
> 501       2166     1  0 Oct02 ?        00:00:00 /usr/local/slimserver/
> 
> Bin/i386-linux/mDNSResponderPosix -d -f /usr/local/slimserver/mDNS.conf
> 
> -P /usr/local/slimserver/mDNS.pid
> root      2265     1  0 Oct02 ?        00:37:15 slimp3slave -b
> root     14781 14745  0 13:00 pts/2    00:00:00 grep slim


The directory is /root as requested above.

Yes, I should have said that the command was -u $SLIMSERVER_USER, my
mistake. It is, and that resolves to a user called slimserver.

I can't use the same script as yourself as Suse doesn't have a command
called daemon. It does have start-daemon, but I've tried that in place
of statrproc with no success.


-- 
steve_uk
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix

Reply via email to