puppet is trying to use systemd to start my service rather than the command that I specified
This used to work on our old (2.7) puppet system but when I moved the code over to 4.x it does not anymore. My code is included in with a lot of other stuff that I don't control including all the default set up for OS etc. I suspect that something is being set somewhere that is telling puppet to always use systemd as the provider for Ubuntu systems.
service {
"argus.$sensor":
start => "/home/sensors/bin/run-service argus $sensor start",
restart => "/home/sensors/bin/run-service argus $sensor restart",
stop => "/home/sensors/bin/run-service argus $sensor stop",
status => "/home/sensors/bin/run-service argus $sensor status",
ensure => running;
}
We are trying to figure out what would cause this.
I believe if you explicitly set your provider, it should respect that. Usually when using the start/restart/stop/status commands, you should use the 'base' provider https://docs.puppet.com/puppet/latest/types/service.html#service-provider-base