[launchd-dev] correctly running service still getting 'Service only ran for 0 seconds.' log entries

Todd Wade waveright at gmail.com
Wed May 27 08:07:10 PDT 2015


On 5/27/15 2:40 AM, Axel Luttgens wrote:
>> Le 27 mai 2015 à 04:53, Todd Wade a écrit :
>> Why is launchd trying to restart its target when it is already running?
>
> This is very likely because your plist starts apache thru apachectl, which quits as soon as it has done its job; as a result, launchd tries to reload the job (ie apachectl) it is supposed to keep alive.

Indeed, after I sent this I looked again at the stock apache's .plist 
and realized the issue was quite obvious.

Thanks!




More information about the launchd-dev mailing list