From: Willem J. W. <wj...@di...> - 2016-01-05 09:02:58
|
On 5-1-2016 00:00, Kevin Zheng wrote: > On 01/04/2016 16:19, Willem Jan Withagen wrote: >> I did not have time to react to the release notes before, but I have to >> concur with Mark that it is a pitty that this feature was removed. >> Does not make FreeBSD life much easier. >> >> And I'm not sure that the PIDfile needs to be locked. >> Why should it be? > > To prevent a second process from starting if one is already running. I > believe daemon(8) accomplishes this using pidfile(3). > > Granted, the '-i' option is probably only used by init daemons, in which > case the existence of the file is checked before anything is started, so > this is really a non-issue. > > If this option makes things substantially easier, I can resurrect it. I cannot speak for everybody, but it would allow for sshguard to get the "standard" rc.d script treatment. Which is well known, and straight forward. Going thru deamon just is a bit more convoluted and uses more resources. So if it is not a great pain, I think it is appreciated. --WjW |