Search code examples
apachelampopensuse

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.


Solution

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