Find the answer to your Linux question:
Results 1 to 2 of 2
Where do we place and/or run the start up scripts so that ...once the fedora 10 boots up, the script should automatically run the application (My script path is /etc/opt/my_script.sh) ...
  1. #1
    Just Joined!
    Join Date
    Jul 2009
    Posts
    9

    Startup script to run an application....fedora does not boot up

    Where do we place and/or run the start up scripts so that ...once the fedora 10 boots up, the script should automatically run the application (My script path is /etc/opt/my_script.sh) I tried placing the paths in etc/rc.local (path in this to run the script) and /etc/rc.d/rc5.d (startup script S and K...)...either of these is creating a problem (just a black and blank screen with the cursor blinking...this is happening after fedora 10 bar completes), otherwise it boots and functions well.. Fedora does not completely boots up and never displayed GNOME or any command line interface. I have been cracking my head and dont know whats going on...any info would be helpful.

    Thanks.

  2. #2
    Trusted Penguin Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,393
    You're probably running an application from your script that doesn't return - and hence rc.local never ends. If you're building an init script, then you have particular rules to follow, and the same problems apply.

    The quickest solution? Just make sure your script returns after launching whatever you're running. If the application doesn't return to the console and run in the background, then try inserting an ampersand (&) at the end of the command line, this will start the application in the background.

    If it's an X application, you might want to consider starting it in /etc/X11/Xclients. If it just needs to be running, then putting a line at the end of rc.local is the best place.
    Linux user #126863 - see http://linuxcounter.net/

Posting Permissions

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