I used to have a service that respawns automatically if it dies, started with a simple line in inittab, something like
od:35:respawn:/usr/local/bin/myservice params> /dev/null 2>&1
With newer versions (FC 10-12), I had to move to /etc/event.d/myfile , something like:
# start on runlevel 
start on stopped rc RUNLEVEL=
stop on runlevel 
respawn limit 10 60
exec /usr/local/bin/myservice params > /dev/null 2>&1
Now, in Fedora Core 13 that does not start the service at all, any clues on the correct location/syntax to simply start/monitor a service ? Note it needs to respawn automatically if it dies, moving the file to /etc/init did nothing...
---------- Post added 2010-05-20 at 12:08 AM CDT ---------- Previous post was 2010-05-19 at 08:42 PM CDT ----------
nm, solved, it was just my syntax I suppose.
Had to move it to /etc/init , changed filename (added .conf extension) and initctl started recognizing it...