Ubuntu Pastebin

Paste from Flavio at Wed, 27 Jul 2016 15:42:32 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
start on runlevel [!2345]
stop on runlevel [2345]

expect daemon

respawn
# give up if I respawn 30 times in 120 seconds...
respawn limit 30 120

script
    exec python /app/bin/my_daemon start
end script

pre-stop script
   
    exec python /app/bin/my_daemon stop
end script
Download as text