Re: restart server with kill or init script




The Keith wrote:
I'm relatively new to linux, and I recently compiled and installed
lighttpd on my vps running debian etch. Once installed, I realized that
I neglected to install the init scripts and could not restart my server
to implement some changes in my conf file. Having never restarted a
process before, I wasn't sure whether i necessarily needed the init
scripts, which, and correct me if I'm wrong, are just shell scripts? I
discovered the "kill" command and the "ps -A" command to locate the
Hello Keith, in some cases the init scripts make the same like "kill
proc" but for some applications you have to stop more then one process
and this with some dependencies. Normally you have for every service an
initscript in /etc/init.d and the you can execute
/etc/init.d/apache2 stop
/etc/init.d/apache2 start or more usefuel
/etc/init.d/apache2 restart
You should have a look if there is such a script for your lighttpd

Hey I appreciate your help guys. Yes, lighttpd does have init scripts, which if you compile the software manually, you have to install those scripts in a separate step. I took a look at this file, and there are commands for stop, start, and restart, etc. I was really just wondering if these scripts did much more than just killing and then restarting the process back up, just as I could do manually using "kill". Since, as Randolph points out, some apps also require other processes to be killed as well, I can see the usefulness of the init scripts. Thanks again.
.



Relevant Pages

  • Re: Documentation of services
    ... > documentation quickly, that is the easiest and probably the best way to ... the init scripts with chkconfig make good sense. ... and you have the ability to restart an individual ... But restarting nfs doesn't imply restarting portmap. ...
    (Fedora)
  • Re: restart server with kill or init script
    ... I neglected to install the init scripts and could not restart my server ... You should have a look if there is such a script for your lighttpd ...
    (comp.os.linux.misc)
  • Re: watchdog processes
    ... >> Does anyone know of a product or scripts I can use to periodically check ... You can also take advantage of the normal parent child relationship ... other management hooks to keep things from running away and restart as ... T o m M i t c h e l l spam unwanted email. ...
    (Fedora)
  • Re: Debian and /ect/mail/makefile
    ... just between the set up of the 2 network interfaces my ... restart sendmail whenever I restart the network (my laptop does that ... (rant of my own - I hate scripts that set -e; ... Of course the clock is reset whenever I come out of hibernation. ...
    (comp.mail.sendmail)
  • RE: /sbin/ifup-local does not work on boot only on restart
    ... I have read in the scripts, and from the way "service network ... restart" runs the stop code, and then runs the start code. ... correct operation of the ifup-local script. ...
    (Fedora)