Date: Fri, 12 Jan 2018 17:57:44 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 221149] mail/postfix-policyd-weight: rc script name issues when used with sysutils/py-salt (2016.11.5) Message-ID: <bug-221149-13-LoSgnUT4Zq@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-221149-13@https.bugs.freebsd.org/bugzilla/> References: <bug-221149-13@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221149 Christer Edwards <christer.edwards@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|maintainer-feedback?(christ | |er.edwards@gmail.com) | --- Comment #2 from Christer Edwards <christer.edwards@gmail.com> --- Apologies for the delay. I must have missed the original CC. If I understand the problem here correctly, the Salt state you're applying fails to properly set the policyd_weight_enable=3D"YES" in the rc.conf. It = will *start* the service, but can't figure out how to _enable_ the same service. The problem is that the service name and the sysrc name don't match. ie;=20 sysrc policyd_weight_enable=3D"YES" service policyd-weight start I just spent some time reproducing this. I have a fairly simple workaround: mail/postfix-policyd-weight: pkg.installed postfix-policyd-weight-service: service.running: - name: policyd-weight postfix-policyd-weight-sysrc: sysrc.managed: - name: policyd_weight_enable - value: "YES" The Salt service module doesn't appear to support defining a service.running where the service name and the enable name don't match. In this case I sugg= est simply managing the service with the service state and the sysrc changes wi= th the sysrc state. If anything I think this is an upstream SaltStack bug that doesn't account = for this edge-case. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-221149-13-LoSgnUT4Zq>