[systemd-devel] Disabling tomcat8

Reindl Harald h.reindl at thelounge.net
Tue Dec 19 00:36:38 UTC 2017



Am 18.12.2017 um 19:40 schrieb Cecil Westerhof:
>      tomcat8.service is not a native service, redirecting to 
> systemd-sysv-install.
>      Executing: /lib/systemd/systemd-sysv-install disable tomcat8
> 
> Other services I can enable and disable. I can stop (and start) tomcat 
> 8, but then I always have to stop tomcat8 after a reboot.
> 
> What could be the problem?

your distribution / package

as you can see it's not a systemd unit at all
/etc/init.d/tomcat8

use "systemctl mask" instead "sytecmtl disable" if you *really* want to 
disable stuff and ensue it never ever can be enabled again

this overrides also LSB init scripts with the same name with a symlink 
to /dev/null

> Status information:
>      ● tomcat8.service - LSB: Start Tomcat.
>         Loaded: loaded (/etc/init.d/tomcat8; generated; vendor preset: 
> enabled)
>         Active: inactive (dead)
>           Docs: man:systemd-sysv-generator(8)
> 
>      Dec 17 11:54:57 munus.decebal.nl <http://munus.decebal.nl> 
> systemd[1]: Starting LSB: Start Tomcat....
>      Dec 17 11:55:03 munus.decebal.nl <http://munus.decebal.nl> 
> tomcat8[1399]: Starting Tomcat servlet engine: tomcat8.
>      Dec 17 11:55:03 munus.decebal.nl <http://munus.decebal.nl> 
> systemd[1]: Started LSB: Start Tomcat..
>      Dec 17 15:05:23 munus.decebal.nl <http://munus.decebal.nl> 
> systemd[1]: Stopping LSB: Start Tomcat....
>      Dec 17 15:05:23 munus.decebal.nl <http://munus.decebal.nl> 
> tomcat8[14181]: Stopping Tomcat servlet engine: tomcat8.
>      Dec 17 15:05:23 munus.decebal.nl <http://munus.decebal.nl> 
> systemd[1]: Stopped LSB: Start Tomcat..


More information about the systemd-devel mailing list