How to have script run after kernel changed

Arch Willingham arch at tuparks.com
Fri Mar 28 13:26:41 UTC 2008


Thanks Stuart and Manuel!

-----Original Message-----
From: fedora-list-bounces at redhat.com [mailto:fedora-list-bounces at redhat.com] On Behalf Of Stuart Sears
Sent: Friday, March 28, 2008 9:25 AM
To: For users of Fedora
Subject: Re: How to have script run after kernel changed

Arch Willingham wrote:
> Thanks to both of y'all. What's the difference between the two?

flexibility and complexity.

a script in /etc/rc.d/init.d can be configured (using chkconfig, mostly)
to run only in certain runlevels.

scripts you place here cshould be more complex as they have to support
start, stop, restart and status arguments

/etc/rc.d/rc.local is a script that runs once on bootup but only in
runlevels 2,3,4 or 5.

incidentally, you can also have a cron job that does this for you in
/etc/cron.d:

@reboot run_some_script_to_do_things.


Or for the more advanced user, create  a metapackage that contains an
rpm trigger for when kernel packages get installed :)

regards,

Stuart
--
Stuart Sears RHCA etc.

--
fedora-list mailing list
fedora-list at redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list




More information about the users mailing list