[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: What's the mistake in this init script?



In article <[🔎] c4jsti$igk$1@sea.gmane.org>,
Adam Aube  <aaube01@baker.edu> wrote:
>Adam Funk wrote:
>
>> Sometimes /etc/init.d/exim restart stops but doesn't restart
>> the exim daemon.  Does anyone see anything wrong?
>
>Maybe the sleep interval is too short, and Exim doesn't finish exiting
>before the script tries to start it again.
>
>Try changing the "sleep 2" to "sleep 5" and see if that helps.

Or change --stop into --stop --retry SIGTERM/10, that sends SIGTERM
and then waits to a maximum of 10 seconds for exim to die.
Adjust to taste ... see "man start-stop-daemon".

Mike.



Reply to: