Re: How to run a script at startup?

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Mike Garfias
Date:  
To: Main PLUG discussion list
Subject: Re: How to run a script at startup?
to make chkconfig work you need this stuff at the top of the script:

#!/bin/bash
#
# kudzu        This scripts runs the kudzu hardware probe.
#
# chkconfig: 345 05 95
# description:     This runs the hardware probe, and optionally  
configures \
#        changed hardware.



Why symlinks don't work, I have no idea, unless you're not symlinking
with the correct name:

/etc/init.d/example -> /etc/rc2.d/K99example (stop on the way down) & /
etc/rc3.d/S99example (start)

On Aug 6, 2008, at 1:50 PM, Bryan O'Neal wrote:

> Ok, apparently things have changed since I had to do custom start up
> scripts. I tired dumping my script in /ete/init.d/ and sim-linking
> it
> out in /etc/rc6.d, /etc/rc5.d, & /etc/rc3.d but I get nothing for my
> efforts. I goggled around and found chkconfig but all I get is does
> not
> support chkconfig. I goggled some more for how to write a service
> script but got nothing useful back.
>
> Suggestions?
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss


---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss