Quantcast
Channel: CentOS Bug Tracker - Issues
Viewing all articles
Browse latest Browse all 19115

0007017: Upstart docs and reality appear to be different

$
0
0
There is very little useful information, either here in CentOS or upstream, on how to build a init.conf file from an inittab entry. Nothing saying "this is how you get started, and get the same results." So I built a toy application and wrote an init.conf script, and have run into all sorts of issues. Here is my toy:<br /> <br /> # Test replacement for inittab<br /> #<br /> # sl:345:respawn:/bin/sleep 150<br /> #<br /> # "If init(8) finds that it's continuously respawning an entry<br /> # more than 10 times in 2 minutes, it will...refuse to respawn<br /> # this entry..."<br /> <br /> start on runlevel [345]<br /> <br /> stop on runlevel [S0126]<br /> <br /> # respawn limit <count> <interval-seconds><br /> #respawn limit 10 120<br /> respawn<br /> exec /bin/sleep 150<br /> <br /> pre-start script<br /> echo `/bin/date` "init: Start my sleepy daemon" >>/var/log/messages<br /> end script<br /> <br /> post-stop script<br /> echo `/bin/date` "init: Stop my sleepy daemon" >>/var/log/messages<br /> end script

Viewing all articles
Browse latest Browse all 19115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>