Re: Running a program at system startup

2007-08-21 Thread Jeff D
On Tue, 21 Aug 2007, ArcticFox wrote: On Aug 20, 2007, at 2:20 PM, srgqwerty wrote: Create a script in /etc/init.d and make a symbolic link to it in the rc runlevel directory that corresponds to your runlevel (or whatever runlevel you want the script to run). So just chuck it in anywhere? D

Re: Running a program at system startup

2007-08-21 Thread ArcticFox
On Aug 20, 2007, at 2:20 PM, srgqwerty wrote: Create a script in /etc/init.d and make a symbolic link to it in the rc runlevel directory that corresponds to your runlevel (or whatever runlevel you want the script to run). So just chuck it in anywhere? Does it matter who owns the file? Shoul

Re: Running a program at system startup

2007-08-21 Thread Douglas A. Tutty
On Tue, Aug 21, 2007 at 08:20:04AM -0400, Ralph Katz wrote: > On 08/20/2007 03:00 PM, ArcticFox wrote: > > Here's the situation; I have a program that needs to run at system > > startup, but there are a few issues with that. First, it must be run > > with a certain directory as the working director

Re: Running a program at system startup

2007-08-21 Thread Ralph Katz
On 08/20/2007 03:00 PM, ArcticFox wrote: > Here's the situation; I have a program that needs to run at system > startup, but there are a few issues with that. First, it must be run > with a certain directory as the working directory. Second it must be run > as the user 'Fox' I'm no expert, but how

Re: Running a program at system startup

2007-08-20 Thread Nate Bargmann
* srgqwerty <[EMAIL PROTECTED]> [2007 Aug 20 14:25 -0500]: > Create a script in /etc/init.d and make a symbolic link to it in the rc > runlevel directory that corresponds to your runlevel (or whatever runlevel > you want the script to run). > > For example, the /etc/init.d/foo.sh may be: > #!/bi

Re: Running a program at system startup

2007-08-20 Thread Mihamina (R12y) Rakotomandimby
On Mon, 2007-08-20 at 21:20 +0200, srgqwerty wrote: > Create a script in /etc/init.d and make a symbolic link to it in the > rc runlevel directory that corresponds to your runlevel invoke-rc.d is the tool to do that. Anyway, you did not indicate enough how to run the things as a particular user.

Re: Running a program at system startup

2007-08-20 Thread Jeff D
On Mon, 20 Aug 2007, ArcticFox wrote: On Aug 20, 2007, at 2:15 PM, Neil Watson wrote: The scripts in /etc/init.d are working examples of what you are trying to do. Yea I was directed there before, but those are what I was talking about where they don't do the two things I need them to do.

Re: Running a program at system startup

2007-08-20 Thread Neil Watson
On Mon, Aug 20, 2007 at 02:17:24PM -0500, ArcticFox wrote: On Aug 20, 2007, at 2:15 PM, Neil Watson wrote: The scripts in /etc/init.d are working examples of what you are trying to do. Yea I was directed there before, but those are what I was talking about where they don't do the two things

Re: Running a program at system startup

2007-08-20 Thread srgqwerty
Create a script in /etc/init.d and make a symbolic link to it in the rc runlevel directory that corresponds to your runlevel (or whatever runlevel you want the script to run). For example, the /etc/init.d/foo.sh may be: #!/bin/bash cd /foo /foo/make_something.sh If you want this script to run i

Re: Running a program at system startup

2007-08-20 Thread ArcticFox
On Aug 20, 2007, at 2:15 PM, Neil Watson wrote: The scripts in /etc/init.d are working examples of what you are trying to do. Yea I was directed there before, but those are what I was talking about where they don't do the two things I need them to do. -- Neil Watson | Debian Lin

Re: Running a program at system startup

2007-08-20 Thread Neil Watson
The scripts in /etc/init.d are working examples of what you are trying to do. -- Neil Watson | Debian Linux System Administrator| Uptime 2 days http://watson-wilson.ca -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECT

Running a program at system startup

2007-08-20 Thread ArcticFox
Here's the situation; I have a program that needs to run at system startup, but there are a few issues with that. First, it must be run with a certain directory as the working directory. Second it must be run as the user 'Fox' The information I've been able to find would end up with the progra