jennifer2017_9266

Start up scripts on RHEL 7

Discussion created by jennifer2017_9266 on May 22, 2017
Latest reply on Jun 19, 2017 by Andreas_Sprosec_7439
Looking for insight on setting up start up scripts for both automic application and remote Agents on a RHEL 7 system.  This is what I started with, but not working successfully... 

/etc/systemd/system/tomcat.service to start up tomcat upon server bounce on the Automic server: 
# Systemd unit file for tomcat 

[Unit] 

Description=Apache Tomcat Web Application Container 

After=syslog.target network.target 


[Service] 

Type=forking 

Environment=JAVA_HOME=/app002/java/current_version/jre/bin 
Environment=CATALINA_PID=/app002/automic/tomcat/temp/tomcat.pid 
Environment=CATALINA_HOME=/app002/automic/tomcat 
Environment=CATALINA_BASE=/app002/automic/tomcat 
Environment='CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseParallelGC' 

Environment='JAVA_OPTS=-Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom' 

ExecStart=/app002/automic/tomcat/bin/startup.sh 
ExecStop=/bin/kill -15 $MAINPID 


User=awaapp 

Group=awaapp 


[Install] 
WantedBy=multi-user.target

Outcomes