Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

Noob question, get a script running at boot
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Noob question, get a script running at boot
20th Jun, 2014, 01:24 AM
Post: #25
huibert Offline
Registered
Posts: 10
Joined: Jun 2014
Reputation: 0
RE: Noob question, get a script running at boot
(19th Jun, 2014 11:15 PM)josch Wrote:  
(19th Jun, 2014 07:42 AM)huibert Wrote:  I'm sorry, i didn't get a notification for that response, so i haven't tries it yet. It wasn't my intention to ignore anyone. [...]

No problem! I just thought that you had already success. In this case I would have expected a short reply.
But of course, I didn't want to be harsh or offended only because you didn't answered fast enough. Tongue

(19th Jun, 2014 07:42 AM)huibert Wrote:  can anyone advise me what might be the problem with these 2 automatic services not working?

Ok, so let's face the /etc/rc.local method. - What exactly did you put in and where?

There are three important things you have to consider:
  1. your command must be put before the line exit(0)
  2. to keep the command running in the background you have to end the command with a &
  3. commands in /etc/rc.local are executed as root


Example:
If I would want to run a script after boot as user xbian and keep the script running, I would add a line like:

Code:
su xbian -c "/path/script &"

right before the exit(0) line in /etc/rc.local.

If you want to run the script as root, the part in the quotes (/path/script &) is all you need!

There we go, insufficient understanding of the rc.local . added the & and correctly started the program as root. Thank you for all your help.
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
Noob question, get a script running at boot - huibert - 13th Jun, 2014, 08:40 AM
RE: Noob question, get a script running at boot - CurlyMo - 13th Jun, 2014, 04:13 PM
RE: Noob question, get a script running at boot - huibert - 13th Jun, 2014, 04:25 PM
RE: Noob question, get a script running at boot - CurlyMo - 13th Jun, 2014, 04:49 PM
RE: Noob question, get a script running at boot - huibert - 13th Jun, 2014, 06:52 PM
RE: Noob question, get a script running at boot - CurlyMo - 13th Jun, 2014, 07:23 PM
RE: Noob question, get a script running at boot - Smultie - 13th Jun, 2014, 07:52 PM
RE: Noob question, get a script running at boot - IriDium - 13th Jun, 2014, 08:11 PM
RE: Noob question, get a script running at boot - huibert - 14th Jun, 2014, 12:45 AM
RE: Noob question, get a script running at boot - CurlyMo - 14th Jun, 2014, 12:58 AM
RE: Noob question, get a script running at boot - huibert - 14th Jun, 2014, 01:41 AM
RE: Noob question, get a script running at boot - josch - 14th Jun, 2014, 04:27 AM
RE: Noob question, get a script running at boot - IriDium - 14th Jun, 2014, 04:32 AM
RE: Noob question, get a script running at boot - huibert - 14th Jun, 2014, 06:02 AM
RE: Noob question, get a script running at boot - IriDium - 14th Jun, 2014, 06:13 AM
RE: Noob question, get a script running at boot - huibert - 14th Jun, 2014, 06:31 AM
Re: RE: Noob question, get a script running at boot - Smultie - 14th Jun, 2014, 06:44 AM
RE: Noob question, get a script running at boot - CurlyMo - 14th Jun, 2014, 06:56 AM
RE: Noob question, get a script running at boot - josch - 14th Jun, 2014, 07:43 AM
RE: Noob question, get a script running at boot - huibert - 14th Jun, 2014, 08:22 AM
RE: Noob question, get a script running at boot - josch - 14th Jun, 2014, 04:29 PM
RE: Noob question, get a script running at boot - josch - 19th Jun, 2014, 03:32 AM
RE: Noob question, get a script running at boot - huibert - 19th Jun, 2014, 07:42 AM
RE: Noob question, get a script running at boot - josch - 19th Jun, 2014, 11:15 PM
RE: Noob question, get a script running at boot - huibert - 20th Jun, 2014 01:24 AM
RE: Noob question, get a script running at boot - CurlyMo - 20th Jun, 2014, 01:28 AM
RE: Noob question, get a script running at boot - josch - 20th Jun, 2014, 11:21 PM

Possibly Related Threads...
Thread: Author Replies Views: Last Post
  Noob question: Solving crash problems JumbledGrass 28 84,879 9th Jun, 2014 11:57 PM
Last Post: menakite

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 26th May, 2025, 04:42 AM Powered By MyBB, © 2002-2025 MyBB Group.