[Bug 221149] mail/postfix-policyd-weight: rc script name issues when used with sysutils/py-salt (2016.11.5)
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Jan 12 17:57:45 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221149
Christer Edwards <christer.edwards at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags|maintainer-feedback?(christ |
|er.edwards at gmail.com) |
--- Comment #2 from Christer Edwards <christer.edwards at 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="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;
sysrc policyd_weight_enable="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 suggest
simply managing the service with the service state and the sysrc changes with
the sysrc state.
If anything I think this is an upstream SaltStack bug that doesn't account for
this edge-case.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list