ansible-roles/tomcat-instance/templates/bin/startup.sh
Mathieu Trossevin e49379ebd0
tomcat: Use system units instead of user units
This massively reduce the output of `systemctl status` (which is usefull
when checking what is running on a server), remove the need of
enable-linger (which is always good when possible) and allows to check
the status of the service much more easily.

(It also enable more sandboxing options if wanted but we don't enable
any in this commit.)
2021-11-24 11:28:23 +01:00

5 lines
100 B
Bash
Executable file

#!/bin/sh
# alias for compatibility
sudo systemctl start tomcat@{{ tomcat_instance_name }}.service