--I blv you can put it in " /etc/init.d/bootmisc.sh "
Originally Posted by alienjeff
I want to add a tiny script "apachectl start" so my apache server is up and running on reboot, instead of having to enter the comand manually. Would someone please direct me where to add such a script? One of the rc#.d files? Elsewhere?
Thanks in advance.
--I blv you can put it in " /etc/init.d/bootmisc.sh "
Originally Posted by alienjeff
Nope. No dice. Tried it straight "apachectl start" and "/usr/sbin/apache start" and no go.
What I want to accomplish is having that command run should I be away from the computer and there being an unexpected reboot. I want the server to come back up without human intervention.
Thanks for the try, though. Back to the Debian online dox. Sigh.
EDIT MODE UPDATE!
Got it working. Here's what I did (from terminal with 'su' privies):
cd /etc/init.d
cp apache /etc/rc5.d
cd /etc/rc5.d
cp apache S90apache
rm apache
Did a reboot, lo and behold: apache loaded between sshd and kdm sequence. Victory! Finally.
Funny how such small victories can fire up a n00b like me. heh.
Easier to do a symlink:
' cd /etc/rc5.d '
' ln /etc/init.d/apache S90apache -sfn '
--That way you don't have to worry about duplicate scripts, and the apache file will always have the latest mods from the package maintainer.
Originally Posted by alienjeff
Thanks, Dave! I did the commands and rebooted. All works well. Appreciate the help! -Jeff

HP ProLiant MicroServer Gen8 Tower Server Xeon E3-1220 v2 2.3GHz 16GB RAM
$289.99
HP Proliant MicroServer Gen 8 2.23GHz Xeon 16GB RAM NO SSD
$249.99
Supermicro E300-12C Mini 1U Barebone X12SCV-LVDS LGA1200 SNK-P0073A4 w/ Adapter
$225.00
Supermicro CSE-937 3U Storage Chassis No CPU No HDD No Ram Tested & Reset
$129.99
HPE ProLiant MicroServer Gen10 Plus with Power Adapter
$600.00
Supermicro 5019D-4C-FN8TP Xeon D-2123IT (4C/8T) 64GB DDR4 10GbE 480GB 1U Server
$649.00
New Barebones Supermicro 5019D Server, 4C/8T Xeon D-2123T, 1U Rackmountable, 10G
$449.99
HP MicroServer Gen8 LOADED 12TB + 16GB RAM Win Server 2025 iLO Advanced SSD Boot
$679.00
Nasuni NF-50 Supermicro Server, Atom CPU C2558, @ 2.40GHz, 8GB RAM-No HDD/OS/AC
$250.00
SuperMicro SuperServer 5013C-M
$160.00