-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
systemd provider for service resource doesn't pick up custom init scripts #2839
Comments
run_action doesn't take an array of actions it does a single action. you need to call it repeatedly if that is what you're trying to do.
|
@lamont-granquist Uhm, this wasn't the actual issue. Read the title of this issue. The systemd provider is buggy if not broken in that regard. I edited the issue. |
After discussing this, we believe this is the way that it should work and after dropping a template you should have the template resource notify the execute resource to hit "systemctl daemon-reload". Otherwise we have to constantly be doing daemon-reload on every service resource action. The explicit solution is better because the template resource knows that daemon-reload actually needs to be called when it gets updated. We can't put that kind of intelligence directly into the systemd provider. |
…ated/updated. As per chef/chef#2839
…ated/updated. As per chef/chef#2839
I'm currently configuring Red5 on Debian Jessie using the init script from the Debian's repo. Red5 however is not in Jessie and we need a newer version than in Sid anyway.
After adapting the init script and putting it on the node I wanted to enable and start Red5.
This failed, and after some investigation it turns out there's no unit file (e.g.
red5.service
). Runningsystemctl daemon-reload
creates this unit file. So putting the following line right between the resources above makes all of this work:The systemd provider for the service resource should do this.
The text was updated successfully, but these errors were encountered: