/etc/rc.local missing in f16
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 15 of 15
  1. #1
    Join Date
    Nov 2008
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    /etc/rc.local missing in f16

    hi. I used to reconfigure the apple keyboard following the instructions in
    https://help.ubuntu.com/community/AppleKeyboard
    usually using the third way , writing the /etc/rc.local
    Now in f16 the rc.local file is missing
    I tried to create one with the script inside but it doesn't work
    Then I tried to create the /etc/sysfs.conf
    but it doesn't work either (after reboot both of them)

    can you please help me where to write the necessary changes for making the apple keyboard work again in f16?

  2. #2
    Join Date
    Aug 2007
    Location
    London Postbox (the red one)
    Age
    54
    Posts
    3,868
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: /etc/rc.local missing in f16

    Dont you mean /etc/rc.d/rc.local

    if not try in terminal
    whereis rc.local

  3. #3
    Join Date
    Nov 2008
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: /etc/rc.local missing in f16

    I try.. thankssss!!!!!!

    ---------- Post added at 05:07 PM ---------- Previous post was at 05:00 PM ----------

    well... it doesn't work . To say the truth there is no rc.local in /etc/rc.d and I created from scratch
    still not able to use that damn apple keyboard
    do you know how could I possibly setup in fedora using this instructions for ubuntu?
    https://help.ubuntu.com/community/AppleKeyboard
    for example what's the equivalent of sudo update-initramfs -u?
    or where is a working rc.local?

  4. #4
    Join Date
    Aug 2007
    Location
    London Postbox (the red one)
    Age
    54
    Posts
    3,868
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: /etc/rc.local missing in f16

    Hmm strange, just spun up the f16x64 Alpha and rc.local is in /etc/rc.d/rc.local, on mine..

  5. #5
    Join Date
    Nov 2008
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: /etc/rc.local missing in f16

    mmmh strange... in the pc with the alpha installation disc I have the rc.local in /etc/rc.d
    in the one made with the beta rc installation disc , there is no rc.local....

  6. #6
    Join Date
    Aug 2009
    Posts
    8,486
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: /etc/rc.local missing in f16

    You could follow the instructions for using the .conf file from there...

    With .conf file (Recommended)

    1. Append the configuration line to the file /etc/modprobe.d/hid_apple.conf creating it if necessary:

    $ echo options hid_apple fnmode=2 | sudo tee -a /etc/modprobe.d/hid_apple.conf

    2. Notify the hid_apple module to reload its configuration

    $ sudo update-initramfs -u

    3. Reboot

    $ sudo reboot
    and instead of running update-initramfs, you run dracut -f to build the initramfs.

    Code:
    cp /boot/initramfs-$(uname -r).img initramfs-$(uname -r).bak
    
    dracut -f /boot/initramfs-$(uname -r).img $(uname -r)
    The rc.local file was used to start up things uning sysvinit/upstart, and Fedora now uses systemd. While systemd does still run the rc.local file, it may disappear in the future.

  7. #7
    Join Date
    Nov 2007
    Posts
    80
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: /etc/rc.local missing in f16

    Quote Originally Posted by DBelton
    The rc.local file was used to start up things uning sysvinit/upstart, and Fedora now uses systemd. While systemd does still run the rc.local file, it may disappear in the future.
    I often use it for quick hacks, where is that supposed to go now?
    I'm not old at all but still think some stuff simply move a bit too fast with the "new and improved" Macin.. err Fedora.

  8. #8
    Join Date
    Aug 2011
    Posts
    899
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: /etc/rc.local missing in f16

    Looks like the changes from https://bugzilla.redhat.com/show_bug.cgi?id=734268

    Now you need to make sure rc-local.service is enabled ('systemctl enable rc-local.service'), and that /etc/rc.d/rc.local exists and is executable.

  9. #9
    Join Date
    Dec 2008
    Location
    Vancouver, BC
    Posts
    4,328
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: /etc/rc.local missing in f16

    there's no real change here except the file doesn't exist by default (because we don't need it for anything). if you create one, it will work just as before.
    Adam Williamson | awilliam AT redhat DOT com
    Fedora QA Community Monkey
    IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora
    http://www.happyassassin.net

  10. #10
    stevea Guest

    Re: /etc/rc.local missing in f16

    It likely needs to be executable as a script. Should start with ...
    #!/bin/sh
    and needs execute permission.

    Also note the links ....
    [root@lycoperdon ~]# ls -l /etc/rc*/*local
    lrwxrwxrwx. 1 root root 11 May 13 15:42 /etc/rc2.d/S99rc-local -> ../rc.local
    lrwxrwxrwx. 1 root root 11 May 13 15:42 /etc/rc3.d/S99rc-local -> ../rc.local
    lrwxrwxrwx. 1 root root 11 May 13 15:42 /etc/rc4.d/S99rc-local -> ../rc.local
    lrwxrwxrwx. 1 root root 11 May 13 15:42 /etc/rc5.d/S99rc-local -> ../rc.local
    -rwxr-xr-x. 1 root root 245 Jul 19 14:12 /etc/rc.d/rc.local
    [root@lycoperdon ~]# ls -l /etc/rc.local
    lrwxrwxrwx. 1 root root 13 May 13 15:42 /etc/rc.local -> rc.d/rc.local
    Last edited by stevea; 21st September 2011 at 07:37 PM.

  11. #11
    Join Date
    Dec 2008
    Location
    Vancouver, BC
    Posts
    4,328
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: /etc/rc.local missing in f16

    stevea: the links in /etc/rc*.d are not necessary. they're for sysv-style init, systemd doesn't need them.
    Adam Williamson | awilliam AT redhat DOT com
    Fedora QA Community Monkey
    IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora
    http://www.happyassassin.net

  12. #12
    Join Date
    Aug 2009
    Posts
    8,486
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: /etc/rc.local missing in f16

    just out of curiosity here..

    Would systemd handle a different rc.local file for different runlevels?

    Say for example, you wanted to run one rc.local file for what was the old runlevel 5, but a different one if you started in the old runlevel 3?

    in the old sysvinit, you could put a different rc.local file in the /etc/rc3.d and /etc/rc5.d folders, replacing the symlinks with a file that did different things depending upon what runlevel you started.

    Does systemd pick it up if you were to do that?

    I know that the rc.local isn't really the "preferred" way of doing things in systemd, but it does appear that it will have to remain for a little while longer until systemd has a good replacement for it.

  13. #13
    Join Date
    Dec 2008
    Location
    Vancouver, BC
    Posts
    4,328
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: /etc/rc.local missing in f16

    dbelton: from a quick look, no, I don't think it would. systemd's handling is pretty simple, it just has a unit file which does this:

    ExecStart=/etc/rc.d/rc.local start

    it just calls the file in /etc/rc.d directly. There's no kind of provision for hooking things up to its SysV runlevel compatibility stuff.

    The thing with systemd is it's actually very, very easy to write and put into the appropriate place a systemd unit. If I wanted to have some script fire in 'runlevel 3' and some other script fire in 'runlevel 5' I'd just hook 'em both up as native systemd units. It's really not very difficult at all. systemd is actually a pretty fun system to play around with, and it's definitely a good way to learn its capabilities.
    Adam Williamson | awilliam AT redhat DOT com
    Fedora QA Community Monkey
    IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora
    http://www.happyassassin.net

  14. #14
    Join Date
    Aug 2009
    Posts
    8,486
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: /etc/rc.local missing in f16

    That's kinda what I figured, Adam. Thanks for the confirmation, though.

    And yes, I have been messing around with systemd somewhat, and find that it is actually easier to set things up than it was with sysvinit. It is a learning curve, though, and I believe that's what the biggest issue people are having with it is (That, and the fact that sometimes it's hard to nail down documentation on it)

    I had problems at first mainly because of the verbosity of things, but after I got used to that, it's really easier to use.

  15. #15
    Join Date
    Dec 2008
    Location
    Vancouver, BC
    Posts
    4,328
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: /etc/rc.local missing in f16

    the systemd man pages have covered everything I've needed to know so far, though it can be a bit annoying guessing whether what you need is in systemd, systemd.unit, systemd.service, etc etc
    Adam Williamson | awilliam AT redhat DOT com
    Fedora QA Community Monkey
    IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora
    http://www.happyassassin.net

Similar Threads

  1. halt.local / rc.local.shutdown for Fedora?
    By flansuse in forum Using Fedora
    Replies: 4
    Last Post: 10th December 2010, 11:40 AM
  2. Sending mail to a 'local' user who is actually not local
    By danscott in forum Servers & Networking
    Replies: 0
    Last Post: 28th February 2010, 06:03 PM
  3. Replies: 13
    Last Post: 28th July 2008, 10:53 PM
  4. Replies: 5
    Last Post: 29th June 2007, 01:07 PM
  5. Xclamav: local socket name /var/run/clamav/clamd.sock missing
    By jespinosa in forum Servers & Networking
    Replies: 4
    Last Post: 9th November 2005, 09:41 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •