[CentOS] running tomcat as non-root user.. (/var/run pidfile issue)

Thu May 4 17:48:15 UTC 2017
Paul Heinlein <heinlein at madboa.com>

On Thu, 4 May 2017, Alexander Dalloz wrote:

> Am 04.05.2017 um 18:35 schrieb Paul Heinlein:
>>  The second method is to add an ExecStartPre to
>>  /usr/lib/systemd/system/tomcat.service, e.g.,
>
> Sorry, no. Better not touch the service files in 
> /usr/lib/systemd/system which ship with the associated packages. You 
> create user custom service files in /etc/systemd/system/. Easiest by 
> "systemctl edit foo.service".

Alexander is 100% correct here. Please excuse my oversight.

-- 
Paul Heinlein <> heinlein at madboa.com <> http://www.madboa.com/