Dave Horoschak Wrote: 
> Two reasons:
> 
> 1. I'm trying to use this as a part of a script and I have no way of 
> knowing the PID ahead of time.
> 
> 2. I wasn't sure if there were any other processes or cleanup that the
> 
> "server stop" executes that don't happen when you kill the process.
> - Dave
> 
> 
> rudholm wrote:
> > Is there any reason you don't want to just kill the process?
> >
> >
> >   

pkill should solve the problem of knowing the PID.  I've never had any
problems just killing the slimserver.  (I just send it a standard TERM
signal, not a KILL, so it *should* exit gracefully by doing whatever it
needs to do before actually exiting).  I've never used any init script
to start or stop it (I never stop it except when I'm upgrading it).

Also, the best practice is to run slimserver as a non-privileged user. 
I've created a 'slim' user on my server for just this purpose.


-- 
rudholm
------------------------------------------------------------------------
rudholm's Profile: http://forums.slimdevices.com/member.php?userid=2980
View this thread: http://forums.slimdevices.com/showthread.php?t=22006

_______________________________________________
Discuss mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/discuss

Reply via email to