MrWhisp Posted May 22, 2004 Report Share Posted May 22, 2004 Hello, I have some self-developed Java programs that I need to be started when a user logs into Mandrake. The programs need to be run as root and therefore I cannot put them in ~/.kde/Autostart. Is it possible to put startup scripts someplace else? /MrWhisp [moved from Software by spinynorman] Quote Link to comment Share on other sites More sharing options...
fred_the_fish Posted May 22, 2004 Report Share Posted May 22, 2004 (edited) You need to put the scripts in the relevant rc.d directories (i.e. if you want the service available at init level 3, put a script in rc3.d, and if you also want it at init level 5, a copy in rc5.d Look at the scripts already present there, and ammend your scripts to provide the functionality you need. As a guide, scripts begining with K mean kill service at this run level (i.e. Kvncserver in rd5.d means that the vnc server doesn't auto-start when in run level 5.) Scripts beginning with S mean start (i.e. Ssshd in rd3.d means auto-start the ssh deamon in run level 3.) (init 3 is the command line interface run level, init 5 is the graphic user interface run level (although both interfaces are available from both run levels, the levels are there so that if you don't want the graphics, you don't have to still have the X server loaded in memory.) # oops - should have pointed out, the rc.d directories are in /etc Edited May 22, 2004 by fred_the_fish Quote Link to comment Share on other sites More sharing options...
MrWhisp Posted May 22, 2004 Author Report Share Posted May 22, 2004 Thanks a lot! /MrWhisp Quote Link to comment Share on other sites More sharing options...
bvc Posted May 22, 2004 Report Share Posted May 22, 2004 /etc/profile.d Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.