I often see start on runlevel [2345]
in Upstart init scripts, but sometimes (e.g., here) I see other events being used to determine start time. How do I know which events (or status codes) should be used for a given program? For instance, I am currently using just runlevel [2345]
for Postgres and Pgbouncer, but I'm not sure if that's really the best idea.
The “best” `start on` value for an Upstart (init) scripts
initupstart
Best Answer
You should probably spend some time looking at some documentation (generally good advice for anything) as it really depends upon your service and what it's requirements are. There is no generic 'best' only that which meets the requirements of your service.