Run At Startup

Run At Startup

Post by Jeff Grossma » Wed, 09 Apr 2003 00:14:39



I have a program which I want to run at startup.  I put it in rc.local,
but it never executes.  I am running Redhat 9, but this also happened with
Redhat 7.3.  At the end of rc.local, I  have this line:

freshclam -d -c 2 -l /var/log/clam-update.log

Thanks,
Jeff

--

 
 
 

Run At Startup

Post by anonymous use » Wed, 09 Apr 2003 04:52:03



> I have a program which I want to run at startup.  I put it in rc.local,
> but it never executes.  I am running Redhat 9, but this also happened with
> Redhat 7.3.  At the end of rc.local, I  have this line:

> freshclam -d -c 2 -l /var/log/clam-update.log

> Thanks,
> Jeff

Why don't you create an rc start/stop script for it then turn it on with
chkconfig.  Simply create an /etc/init.d/freshclam script then enable it
with 'chkconfig --add freshclam'.

-ts

 
 
 

Run At Startup

Post by Jeff Grossma » Wed, 09 Apr 2003 09:30:55




>> I have a program which I want to run at startup.  I put it in rc.local,
>> but it never executes.  I am running Redhat 9, but this also happened with
>> Redhat 7.3.  At the end of rc.local, I  have this line:

>> freshclam -d -c 2 -l /var/log/clam-update.log

>> Thanks,
>> Jeff

>Why don't you create an rc start/stop script for it then turn it on with
>chkconfig.  Simply create an /etc/init.d/freshclam script then enable it
>with 'chkconfig --add freshclam'.

I am not good at creating those scripts.

Jeff
--

 
 
 

Run At Startup

Post by mcss » Thu, 10 Apr 2003 07:07:50




Quote:> I have a program which I want to run at startup.  I put it in rc.local,
> but it never executes.  I am running Redhat 9, but this also happened
> with Redhat 7.3.  At the end of rc.local, I  have this line:  freshclam
> -d -c 2 -l /var/log/clam-update.log  Thanks,
> Jeff

Put the full path so it reads like ...
/some/dir/freshclam -d -c 2 -1/var/log/clam-update.log

Cheers

 
 
 

Run At Startup

Post by Jeff Grossma » Thu, 10 Apr 2003 13:02:08





>> I have a program which I want to run at startup.  I put it in rc.local,
>> but it never executes.  I am running Redhat 9, but this also happened
>> with Redhat 7.3.  At the end of rc.local, I  have this line:  freshclam
>> -d -c 2 -l /var/log/clam-update.log  Thanks,
>> Jeff

>Put the full path so it reads like ...
>/some/dir/freshclam -d -c 2 -1/var/log/clam-update.log

I can't believe I didn't think of that.  I just made the change, and
will let the group know what happens the next time I have to reboot
the machine.

Thanks,
Jeff

--

 
 
 

1. Setting up programs to run at startup.

Hi, I'm new to Linux I I was wondering if anyone could tell me
how to run a program at start up in RHL 5.1.
I am trying to run a java Chat server, which I can run fine on a prompt after I
reboot typing "java Chat &" to run it in the background, but I want to make it
automatic so I don't forget to start it when I rebbot
the machine.
Thanks in advance, and please reply to my email.
Alejandro

2. Can I see long filenames with samb ?

3. How to run a startup process as another user?

4. Netscape icons/bitmaps with > 256 colors

5. scripts running at startup time in suse linux.7.0.

6. htonl, ntohl, sin_port, sin_addr

7. How to stop kpersonalizer running on startup

8. POSIX shm, sem & aio

9. Running a startup script as a user other than root

10. Bootmagic not running on startup with xp and redhat linux installed

11. App run on startup

12. xchooser runs on startup

13. Newbie: Running On StartUp