LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Auto run at bootup (https://www.linuxquestions.org/questions/linux-software-2/auto-run-at-bootup-183235/)

irfan44 05-19-2004 07:06 AM

Auto run at bootup
 
I have install an application (smokeping). When i reboot the machine i have to enter the command:

/usr/local/Smokeping ./bin/Smokeping

to run the application. I want that this command will auto run at bootup.

Please any one help me


regards,

irfan

juliettree 05-19-2004 07:24 AM

Have you tried inserting that command into your rc.local file?

This is where I put all my non standard agents/applications I need starting.
Just insert the line as you would on a command line.

hollerith 05-19-2004 07:30 AM

You're after information about runlevels and init scripts on which I'm not hot. I presume smokeping is some sort of service?

I set up GKrellm at startup via Gnome on RH9. Sorry - my short-term memory is shot to hell.

If you haven't found anything on the net for your distro post back and I'll have a look for you.

Someone will know.

naren 05-19-2004 07:52 AM

U can make it in in /etc/rc.d/rc.local
as told my others
It is the script that will be executed after all the init scripts will be executed

touch /var/lock/subsys/local is the famous one to be added

Andrew Benton 05-19-2004 09:23 AM

/etc/rc.d/rc.local is a file specific to distro's that use BSD style bootscripts (like Slack or College). If the original poster is using a distro that uses SysVinit style scripts (like Fedora or Mandrake) then the specifics are different http://lfs.securewebservices.co.uk/l...r07/usage.html

hollerith 05-20-2004 05:40 AM

What I meant was that it is possible with RH9 to have a start without hand-crafting run-levels and init scripts i.e. via some Gnome app.

irfan44 05-21-2004 08:44 AM

Quote:

Originally posted by juliettree
Have you tried inserting that command into your rc.local file?

This is where I put all my non standard agents/applications I need starting.
Just insert the line as you would on a command line.



Thank u very much, it worked

i insert following in rc.local file

cd /usr/local/Smokeping (i.e directory path )
./bin/Smokeping (then the command)


All times are GMT -5. The time now is 02:49 AM.