running a specified binary across reboots

Ed Greshko ed.greshko at greshko.com
Fri Aug 8 09:33:41 UTC 2014


On 08/08/14 17:28, Kevin Wilson wrote:
> I want to run a binary of some Fedora application I wrote immediately
> after reboot.
>
> I know that as a workaround I can wrap it as a systemd daemon, but I
> prefer not to.
>
> In previous fedora distros, making it run across reboots was enabled
> by adding an entry
> in /etc/rc.local.
>
> What is a good practice to achieve it in Fedora 20 ? there is no
> /etc/rc.local in my fedora 20, and trying to add an entry in
> /etc/rc.local does not cause it be be run across boots.

Yes, Fedora does support an rc.local concept....

From

http://docs.fedoraproject.org/en-US/Fedora/16/html/Release_Notes/sect-Release_Notes-Changes_for_Sysadmin.html

3.2.4. rc.local no longer packaged
The /etc/rc.d/rc.local local customization script is no longer included by default. Administrators who need this functionality merely have to create this file, make it executable, and it will run on boot.

-- 
If you can't laugh at yourself, others will gladly oblige.


More information about the users mailing list