[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 194
  • Last Modified:

in suse10, what file do I put commands to start up a program on boot?

I have suse10.  I want to start up apache2,postgresql, and boinc on boot.  I can start these from the command line.  But I do not know what etc file to modify.  Please advise.
0
astar666
Asked:
astar666
  • 2
1 Solution
 
rindiCommented:
In SuSE you should have the possibility to use yast to or delete files from the startup on boot. Otherwise you can add a symlink of the startup script (the scripts are probably in /etc/init.d/) to the runlevels you want these to startup in. The runlevels are usually in /etc/rc0.d to /etc/rc5.d. The Symlinks of the scripts need to be named Sxxfilename, S is for Start, xx is a number, and 00 would start before 99. This way you can unsure that other necessary modules are started before your app. Another symlink that starts with a Kxxfilename would stop the script.
0
 
astar666Author Commented:
I used YAST to startup apache and postgresql.  BOINC, which is vaguely setiathome is not in YAST and not in init.d.  I would expect them not to be there, since BOINC is a package hand installed.  For my purpose, I do not think I have to deal with run levels.  What is an etc file to which I can just add the startup command?  Presumedly, it is one of the last etc file executed at boot.
0
 
rindiCommented:
You'll have to make a script for boinc to start in init.d. Then you just follow the above instructions with symlinks to add it to the runlevels (you allways have to deal with runlevels, and probably it only makes sense to start boinc in 3 and 5).
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now