22 lines
		
	
	
		
			640 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			640 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
[Unit]
 | 
						|
Description=checkService
 | 
						|
After=network.target auditd.service
 | 
						|
 | 
						|
[Service]
 | 
						|
Type=simple
 | 
						|
User=root
 | 
						|
Group=root
 | 
						|
 | 
						|
StandardOutput=syslog
 | 
						|
StandardError=syslog
 | 
						|
SyslogIdentifier=autoDeploy
 | 
						|
SyslogFacility=local0
 | 
						|
 | 
						|
WorkingDirectory=/home/admin.hq
 | 
						|
ExecStartPre=/etc/systemd/system/frontEndUpgrade.sh zhuize.zip "/etc/nginx" "/home/admin.hq" "production/investigate"
 | 
						|
ExecStartPre=/etc/systemd/system/checkService.sh investigate.jar "/usr/local/jar" investigate "/home/admin.hq/" "production/investigate"
 | 
						|
ExecStart=/usr/bin/echo "checkService checked done"
 | 
						|
ExecStartPost=/usr/bin/systemctl reload nginx
 | 
						|
Restart=on-failure
 | 
						|
RestartPreventExitStatus=255
 |