Gentoo: Adding services to be run after a boot

Hi,

How do I set non /etc/init.d services to be started after a boot in Gentoo linux?  I have used the rc-update command to add services which have a script in /etc/init.d such as "rc-update add mysql default" which is working fine.

I have built the following services from source but is there any way to get them started automatically?

Apache:  /usr/local/apache2/bin/apachectl start
Webmin: /usr/local/webmin/webmin-init start

Many thanks.
jonbutler_ukAsked:
Who is Participating?
 
Duncan RoeSoftware DeveloperCommented:
You could make symbolic links in /etc/init.d to these programs e.g:
  # cd /etc/init.d
  # ln -s /usr/local/apache2/bin/apachectl .
Now you must ensure /usr/local is mounted before the scripts are obeyed - only a problem if you have it on other than the root partition.
What priority did rc-update allocate to mysql? As long as you are happy with it, you can now use it on the created symlinks.
0
 
ravenplCommented:
or simply use /etc/conf.d/local.start /etc/conf.d/local.stop
0
 
cjl7freelance for hireCommented:
> I have built the following services from source but is there any way to get them started automatically?

Why on earth do you build stuff from source when you are running Gentoo?

Both webmin and Apache are included in gentoos portage system, and any tweeking you need done can be made by editing the /etc/make.conf...


Cheers

Jonas
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.