Re: How to have script run after kernel changed

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

 



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.


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

  Powered by Linux