On 2020/11/19 15:17, Mike Fischer wrote:
> Hi Stuart!
>
> Wow that was fast, thanks!
>
> I have tried this as follows:
> - Edited /etc/rc.d/postgrey to make the change to:
> pexp="perl: ${daemon}${daemon_flags:+ ${daemon_flags}}.*"
Ah sorry, I missed a bit, it no longer has the full path to the script
either. Can you try this please?
pexp="perl: .*postgrey${daemon_flags:+ ${daemon_flags}}.*"
> - # mv /var/run/rc.d/postgrey /var/run/rc.d/postgrey.old (for testing…)
>
> - # rcctl check postgrey
> postgrey(failed)
> # rcctl start postgrey
> postgrey(ok)
> # rcctl check postgrey
> postgrey(failed)
> # cat /var/run/rc.d/postgrey
> daemon_class=daemon
> daemon_flags=--inet=10023
> daemon_rtable=0
> daemon_timeout=30
> daemon_user=root
> pexp=perl: /usr/local/libexec/postgrey -d --inet=10023.*
> #
>
> So it appears the change is being used but it is not solving the problem.
>
> ?
> --
> Mike Fischer
> > Am 19.11.2020 um 15:03 schrieb Stuart Henderson <[email protected]>:
> >
> > On 2020/11/19 14:50, Mike Fischer wrote:
> >> Hi Stuart,
> >>
> >> Here it is:
> >> # cat /var/run/rc.d/postgrey
> >> daemon_class=daemon
> >> daemon_flags=--inet=10023
> >> daemon_rtable=0
> >> daemon_timeout=30
> >> daemon_user=root
> >> pexp=perl: /usr/local/libexec/postgrey -d --inet=10023
> >> #
> >>
> >> Thanks!
> >
> > This will fix things (I've just committed it to -current). You'll need
> > to rm /var/run/rc.d/postgrey to get it to notice the changed pexp value.
> >
> > Index: Makefile
> > ===================================================================
> > RCS file: /cvs/ports/mail/postgrey/Makefile,v
> > retrieving revision 1.25
> > diff -u -p -r1.25 Makefile
> > --- Makefile 31 Aug 2019 15:55:55 -0000 1.25
> > +++ Makefile 19 Nov 2020 14:02:00 -0000
> > @@ -3,6 +3,7 @@
> > COMMENT= postfix greylist daemon
> >
> > DISTNAME= postgrey-1.37
> > +REVISION= 0
> > CATEGORIES= mail
> >
> > HOMEPAGE= https://postgrey.schweikert.ch/
> > Index: pkg/postgrey.rc
> > ===================================================================
> > RCS file: /cvs/ports/mail/postgrey/pkg/postgrey.rc,v
> > retrieving revision 1.4
> > diff -u -p -r1.4 postgrey.rc
> > --- pkg/postgrey.rc 11 Jan 2018 19:27:04 -0000 1.4
> > +++ pkg/postgrey.rc 19 Nov 2020 14:02:00 -0000
> > @@ -7,6 +7,6 @@ daemon_flags="--inet=10023"
> >
> > . /etc/rc.d/rc.subr
> >
> > -pexp="perl: ${daemon}${daemon_flags:+ ${daemon_flags}}"
> > +pexp="perl: ${daemon}${daemon_flags:+ ${daemon_flags}}.*"
> >
> > rc_cmd $1
> >
>