Subversion Repositories SmartDukaan

Rev

Rev 23736 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
23725 amit.gupta 1
[Unit]
2
Description=Cron Service
3
[Service]
4
User=root
5
# The configuration file application.properties should be here:
6
#change this to your workspace
23737 amit.gupta 7
WorkingDirectory=/root/code/trunk/runutils/
23725 amit.gupta 8
#path to executable. 
9
#executable is a bash script which calls jar file
23736 amit.gupta 10
ExecStart=/root/code/trunk/runutils/run-cron.sh
23725 amit.gupta 11
SuccessExitStatus=143
12
TimeoutStopSec=10
13
Restart=on-failure
14
RestartSec=5
15
[Install]
16
WantedBy=multi-user.target