may be pid file lying around  from earlier stop/start?

remove the pid file  and start again.

/opt/tomcat/temp/tomcat.pid

On Tue, Dec 20, 2016 at 4:08 PM, Mary Wiegand <naviak.kai...@gmail.com>
wrote:

> Hi,
>
> I'm installing tomcat v8.5.9 on ubuntu 16.04
>
> this is my tomcat.service file:
>
> #System unit file for tomcat
> [Unit]
> Description=Apache Tomcat Web Application Container
> After=network.target
>
> [Service]
> Type=forking
>
> Environment=JAVA_HOME=/usr/lib/jvm/java-8-oracle/jre/bin/java
> Environment=CATALINA_PID=/opt/tomcat/temp/tomcat.pid
> Environment=CATALINA_HOME=/opt/tomcat
> Environment=CATALINA_BASE=/opt/tomcat
> Environment='CATALINA_OPTS=-Xms512M -Xmx1024M -server-XX:+UseParallelGC'
> Environment='JAVA_OPTS=-Djava.awt.headless=true
> -Djava.security.edg=file:/dev/./urandom'
>
> ExecStart=/opt/tomcat/bin/startup.sh
> ExecStop=/opt/tomcat/bin/shutdown.sh
>
> User=tomcat
> Group=tomcat
> UMask=0007
> RestartSec=10
> Restart=always
>
> [Install]
> WantedBy=multi-user.target
>
>
> This is what I get when I check the journalctl -xe:
>
> tomcat.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
> PID file found but no matching process was found. Stop aborted.
> tomcat.service: Control process exited, code=exited status=1
> tomcat.service: Unit entered failed state.
> tomcat.service:Failed with result 'exit-code'.
>
> Anyone have any ideas for me on where to start looking for the
> invalidargument?
>
> Thanks,
>
> -Mary
>



-- 
*Thanks*
*Niranjan*

Reply via email to