FedoraForum.org (https://forums.fedoraforum.org/index.php)
-   Using Fedora (https://forums.fedoraforum.org/forumdisplay.php?f=7)
-   -   FC16 rc.local start after standbye (https://forums.fedoraforum.org/showthread.php?t=274595)

Moby1de 31st December 2011 03:43 PM

FC16 rc.local start after standbye

i need rc.local, but its not working after resume.

How can i restart/load rc.local after standbye?


nsnbm 2nd January 2012 02:24 AM

Re: FC16 rc.local start after standbye
Hello Moby1de,

The way I got rc.local to work on my desktop (which does not use standby) was the following:

As root I linked the rc-local.service into the system with the command:

ln -s /lib/systemd/system/rc-local.service /etc/systemd/system/multi-user.target.wants/rc-local.service

On the next boot-up of the computer, the command which I placed in /etc/rc.d/rc.local worked. The /etc/rc.d/rc.local has to be executable. I ran the command:

chmod 755 /etc/rc.d/rc.local

to make it executable, and the rc.local file was a bash script which had: #!/bin/bash on the first line. My understanding is that you don't have to enable the file with systemctl. I didn't have to do that. See:


All times are GMT +1. The time now is 06:53 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2017, vBulletin Solutions Inc.