Results 1 to 7 of 7
Thread: Apache auto-start on boot, how?
|
|
Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
-
03-09-2005 #1Just Joined!
- Join Date
- Mar 2005
- Posts
- 3
Apache auto-start on boot, how?
I've try differents matters but no one is running. Anybody know the steps necessary to make possible at Apache to start automatically on boot in Debian Sarge? Thanks !!!!!!!!!!!!
-
03-09-2005 #2
This might help:
update-rc.d svc defaults
Enable service at boot time. chkconfig svc on
update-rc.d svc stop 0 1 2 3 4 5 6
Disable scv at boot time. This puts "K" links in all relevant runlevels, so theoretically apt-get will know to keep the service disabled, and won't re-enable it. At least in theory. In practice there's something wrong with the command and I haven't figured out how to make it work. Adding "." at the end doesn't work either.
update-rc.d -f svc remove
Disable service at boot time. chkconfig svc off This is simpler than the preceeding line, but less permanent; services will come back on an apt-get install or dist-upgrade.
-f means force removal of the /etc/rc.? scripts while leaving the basic script in /etc/init.d (so you can run the service by hand if you choose). --purge means remove the script from init.d.
If you want to remove a service so that it never starts unless asked, and never comes back in a dist-upgrade ... I still don't know. Apparently the only way is to go to each directory named /etc/rc?.d in turn, and then rename Snnservicename to Knnservicename (which you can't easily do as a script or alias because of the nns being variable). It's unbelievable that debian has no easier way to do this. Oh, well.
update-rc.d svc start 20 2 3 4 5 . stop 20 0 1 6
Enable service at boot time in the given runlevels, like chkconfig svc --levels 2345 onThere are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence.
- Jeremy S. Anderson
-
03-09-2005 #3Just Joined!
- Join Date
- Mar 2005
- Posts
- 3
Thanks for your big help .
-
03-09-2005 #4
I had to do some digging through my "storage" drive, but here's a script I used to use (I haven't had a Debian install in a while...don't hold it against me, please) to list active services:
Code:#!/bin/sh # List files run at boot time in each run level list_level() { level=$1 echo Level: $level for f in /etc/rc${level}.d/*; do # Remove /etc/Knn or Snn from beginning ff=$(echo $f | sed 's_/etc/rc..d/[KS][0-9][0-9]__') if [ $f != $ff ]; then echo $ff fi done echo "" } list_all() { for l in 0 1 2 3 4 5 6 S; do list_level $l done } if [ $# -eq 0 ]; then # Try to guess the default runlevel from /etc/inittab l=$( grep initdefault /etc/inittab | egrep -v '^ *#' | cut -d : -f 2 ) if [ $l == "" ]; then list_all else list_level $l fi elif [ $1 == "-a" ]; then list_all else for l in $*; do list_level $l done fiThere are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence.
- Jeremy S. Anderson
-
03-09-2005 #5Weird...my sarcasm radar seems to be sputtering today. Did you mean that or do you now hate me?
Originally Posted by axew3
There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence.
- Jeremy S. Anderson
-
03-09-2005 #6Just Joined!
- Join Date
- Mar 2005
- Posts
- 3
really thanks... i can't understand all what you have write, only because i'm a truly newbie linux user, i've install Debian only from 2 days
.... so, is too much for me to have a server Apache 2.0.53 running on it, and connection to internet ok ... a big thanks to you, hope you will fell good that THANKS!!!!!!!
.....and please....sorry for my terrible
English!
-
03-09-2005 #7
Happy to help. Come back if you have other problems...this is the most responsive and noob-friendly forum site I've found. People trip over each other to answer questions here!
There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence.
- Jeremy S. Anderson


