FedoraForum.org - Fedora Support Forums and Community
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2016
    Location
    Cape Canaveral
    Posts
    38

    Post Boot Script

    Hello,

    On 7.x after the entire OS has been completely booted and is fully available I would like to run a BASH shell script. Though I have written many BASH scripts, I have never done this. Please advise me on how to achieve this.

    Thanks,

    Michael

  2. #2
    Join Date
    Dec 2007
    Location
    Australia
    Posts
    1,746

    Re: Post Boot Script

    I'm not sure what 7.x refers to, but if you're looking to run a script at boot, perhaps look at using a file: /etc/rc.d/rc.local, where the file rc.local consists of the bash script. If this file exists, it's usually executed automatically on boot as the last or one of the last processes to run when it's detected by the system. Otherwise you could look into creating a systemd service, which is sort of functionally analagous to the old sysvinit scripts in /etc/rc.d/init.d/, and enable it. Or, you could even create a sysvinit script along the old lines configured with chkconfig because systemd still honours that as well. You can have a look at /etc/rc.d/init.d/network to see what one of them looks like if it's on your system. It's used flawlessly on my systems.

Similar Threads

  1. Fedora 23 Post install Script
    By freddie50 in forum Installation, Upgrades and Live Media
    Replies: 3
    Last Post: 12th June 2016, 05:45 PM
  2. Script from RPM %post does not interact with user
    By ronbarak in forum Programming & Packaging
    Replies: 0
    Last Post: 6th January 2016, 03:22 PM
  3. [Script] Fedora Post Installation
    By Boubakr in forum Programming & Packaging
    Replies: 1
    Last Post: 18th July 2013, 03:10 PM
  4. Kickstart Post Script
    By deanhunter in forum Using Fedora
    Replies: 0
    Last Post: 11th March 2013, 08:32 PM
  5. Fedora Post Installation Script
    By satya164 in forum Using Fedora
    Replies: 6
    Last Post: 3rd March 2011, 03:05 AM

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
  •