Link to home
Start Free TrialLog in
Avatar of jonbutler_uk
jonbutler_uk

asked on

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.
ASKER CERTIFIED SOLUTION
Avatar of Duncan Roe
Duncan Roe
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
or simply use /etc/conf.d/local.start /etc/conf.d/local.stop
> 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