[packages/postgrey] fixed pidfile header (used by systemd), do not wrap with daemon() - these date back to initial commi
Arkadiusz Miśkiewicz
arekm at maven.pl
Tue Aug 7 10:31:25 CEST 2018
On Tuesday 07 of August 2018, gotar wrote:
> commit e8e7d086492bf6a39954fbddf6271ac95eacfcec
> Author: Tomasz Pala <gotar at pld-linux.org>
> Date: Tue Aug 7 10:02:19 2018 +0200
>
> do not wrap with daemon()
why?
> - these date back to initial commit; always remove lockfile on stop()
> # Check if the service is already running?
> if [ ! -f /var/lock/subsys/postgrey ]; then
> msg_starting postgrey
> - daemon /usr/sbin/postgrey -d --pidfile=/var/run/postgrey.pid $OPTIONS
> + /usr/sbin/postgrey -d --pidfile=/var/run/postgrey.pid $OPTIONS
> RETVAL=$?
> [ $RETVAL -eq 0 ] && touch /var/lock/subsys/postgrey
missing ok/fail now?
--
Arkadiusz Miśkiewicz, arekm / ( maven.pl | pld-linux.org )
More information about the pld-devel-en
mailing list