[ale] apcupsd
Brian Pitts
brian at polibyte.com
Mon Oct 15 19:22:13 EDT 2007
Paul Cartwright wrote:
> 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..... folder
Yes it does, but they're in /etc not /etc/init.d.
You can test your init scripts without rebooting simply by running them
with the appropriate parameters (eg start, stop). You can test the links
by changing runlevels with telinit.
-Brian
More information about the Ale
mailing list