[ale] apcupsd

Paul Cartwright ale at pcartwright.com
Mon Oct 15 14:38:22 EDT 2007


On Mon October 15 2007 2:05 pm, Ashley Wilson wrote:
> I usually write a short init script in rc.d and link it to start in the
> appropriate rc#.d directory. ?Here's one for tomcat that I mangle to suit
> my needs:
> http://www.akadia.com/download/soug/tomcat/html/tomcat_startscript.html
>
I "think" the scripts are already in place..

>
> linked thusly:
>
> ln -s /etc/init.d/tomcat /etc/init.d/rc0.d/K91tomcat
> ln -s /etc/init.d/tomcat /etc/init.d/rc1.d/K91tomcat
> ln -s /etc/init.d/tomcat /etc/init.d/rc2.d/S91tomcat
> ln -s /etc/init.d/tomcat /etc/init.d/rc3.d/S91tomcat
> ln -s /etc/init.d/tomcat /etc/init.d/rc4.d/S91tomcat
> ln -s /etc/init.d/tomcat /etc/init.d/rc5.d/S91tomcat
> ln -s /etc/init.d/tomcat /etc/init.d/rc6.d/K91tomcat
>
> you may have to alter the paths, this is from Suse.
>
> Granted, this may not be the best way to do things, but it works for me :)

Debian doesn't have the rc0.d, rc1.d..... folders it does have an rc file, and 
inittab has these entries:
# Runlevels 2-5 are multi-user.
# Runlevel 6 is reboot.

l0:0:wait:/etc/init.d/rc 0
l1:1:wait:/etc/init.d/rc 1
l2:2:wait:/etc/init.d/rc 2
l3:3:wait:/etc/init.d/rc 3
l4:4:wait:/etc/init.d/rc 4
l5:5:wait:/etc/init.d/rc 5
l6:6:wait:/etc/init.d/rc 6


-- 
Paul Cartwright
Registered Linux user # 367800
Registered Ubuntu User #12459



More information about the Ale mailing list