jts linux service fails
CLM 6.0.0 Patch 2
OS: Linux
I am trying to configure the JTS process as a service via Upstart. When starting the service with the command: sudo start JTS, I hit an error in catalina.out file:
java.util.zip.ZipException: Exception in opening zip file: /opt/IBM/JazzTeamServer/server/tomcat/work/Catalina/localhost/qm/eclipse/configuration/org.eclipse.osgi/bundles/418/1/bundlefile
BUT, if I run the process manually using server.startup it works like a charm.
My conf file is
description "JTS"
start on startup
start on runlevel [2345]
stop on runlevel [!2345]
post-start script
cd /opt/IBM/JazzTeamServer/server
exec ./server.startup
end script
post-stop script
cd /opt/IBM/JazzTeamServer/server
exec ./server.shutdown
end script
Accepted answer
3 other answers
With Ubuntu's shift from Upstart to Systemd for system services management in 16.04, I refactored my Upstart script into a systemd script for JTS. Several useful capabilities in systemd that are lacking in Upstart are the ability to set resource limits for the monitored daemons and to track a daemon's claimed process identifier through its own pid file.
The result is that a short *.service file for JTS can better handle server.startup than could be done with Upstart and its "expect fork|daemon" stanza.
Note too that start-stop-daemon does not participate in PAM and both Upstart and systemd do not either. This means that as admins we have to figure out other ways to grant server.start and its children greater resource limits.
Here's the Service stanza from my working systemd jts.service file:
[Service] ExecStart=<%= @jtsPath %>/server/server.startup ExecStop=<%= @jtsPath %>/server/server.shutdown Type=forking PIDFile=<%= @jtsPath %>/server/liberty/servers/.pid/clm.pid User=vagrant Group=vagrant WorkingDirectory=<%= @jtsPath %>/server LimitNOFILE=65535:65535 LimitNPROC=10000:10000
Comments
showing 5 of 9
show 4 more comments
Comments
Liora Milbaum
Aug 21 '15, 4:09 p.m.