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.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux