Reputation: 23
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
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
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