LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   start applications on boot (https://www.linuxquestions.org/questions/linux-newbie-8/start-applications-on-boot-286269/)

ryedunn 02-04-2005 02:05 PM

start applications on boot
 
example: "service courier-imap start" works just fine, but it never starts on boot, how do I get this and other applications auto-start?

jonr 02-04-2005 02:25 PM

Look in your Mandrake Control Center under "System > Services" and you'll find a list of all the services that are available and their status. You can switch between start-on-boot and don't-start-on-boot there.

twantrd 02-04-2005 02:26 PM

Redhat makes things very easy. I think this command will work on mandrake as well:

1. chkconfig --levels 2345 <application> on

This will make the application start up on run levels 2-5.

If chkconfig doesn't work, then create an init script for it and do a symlink to it from your current run level.

Let me know if you need help.

-twantrd

MadTurki 08-10-2005 09:37 PM

I'm trying to initiate my vncserver on my machine on boot. I did the previous suggestion, didn't work. Using Fedora Core 2. Tried graphic and command line based methods to get it to start. It even exists properly (afaik) within my /etc/rc5.d/ folder and /etc/rc3.d/ folder. Totally stumped.


Note: I need to just run "vncserver" in order to be able to login. "service vncserver stop" says [ OK ] but doesn't disable login capabilities! Odd.

Thanks

Mad.

twantrd 08-10-2005 10:06 PM

Quote:

It even exists properly (afaik) within my /etc/rc5.d/ folder and /etc/rc3.d/ folder
Ok, if it exists properly in those runlevels then there should be a startup script in those directories as well - is there a startup script there?

Another alternative (if mandrake has one) is to put 'service vncserver start' in your /etc/rc.local.

-twantrd


All times are GMT -5. The time now is 12:19 PM.