FedoraForum.org

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

Moby1de 31st December 2011 03:43 PM

FC16 rc.local start after standbye
 
Hello,

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

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

THX

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:

http://lists.freedesktop.org/archive...er/003869.html


All times are GMT +1. The time now is 05:27 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.