RE: How to have script run after kernel changed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks Stuart and Manuel!

-----Original Message-----
From: fedora-list-bounces@xxxxxxxxxx [mailto:fedora-list-bounces@xxxxxxxxxx] 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@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux