A. Wench
A. Wench

Reputation: 23

Can't add Apache to start at boot with chkconfig (opensuse 13.1)

I'm running opensuse 13.1, and I installed Apache2 as part of LAMP.

Apache2 works just fine, except I can't make it start automatically with boot.

I used "chkconfig -a apache2" command (as described here) which gives an error "apache2: unknown service".

Appreciate any hints.

Upvotes: 2

Views: 2371

Answers (2)

Calimo
Calimo

Reputation: 7969

Apache2 has been migrated to systemd. chkconfig works only for SysV services.

The following command (apparently) worked for me:

systemctl enable apache2.service

It seems that the OpenSUSE doc is out of sync.

Upvotes: 2

Daniel Scott
Daniel Scott

Reputation: 7971

Find the name of the service:

ls -al /etc/init.d/

(Look for apache or httpd)

Then use that name in chkconfig.

Upvotes: 0

Related Questions