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

Posted on 2006-05-14
Last Modified: 2013-12-16
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.
Question by:astar666
    LVL 87

    Accepted Solution

    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.

    Author Comment

    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.
    LVL 87

    Expert Comment

    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).

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
    SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now