chef-cookbooks / runit

Development repository for the Chef Runit Cookbook
https://supermarket.chef.io/cookbooks/runit
Apache License 2.0
107 stars 197 forks source link

sv_timeout for RHEL #199

Open maxwell-gregory opened 8 years ago

maxwell-gregory commented 8 years ago

I am having trouble getting sv_timeout value into the runit command on RHEL node.

I noticed here in the code, the template file is only getting accessed if platform is debian so my sv_timeout attribute is doing nothing.

Here is my chef-client output when attempting a restart command:

  ---- Begin output of /sbin/sv restart /etc/service/graphite-web ----
  STDOUT: timeout: run: /etc/service/graphite-web: (pid 30511) 305s, got TERM
  STDERR:
  ---- End output of /sbin/sv restart /etc/service/graphite-web ----
  Ran /sbin/sv restart /etc/service/graphite-web returned 1

There is no wait time (-w) in the command. Has anyone else experienced this?

tas50 commented 6 years ago

@NoMotion You can probably just add that same bit of logic on RHEL. If you wanted to cut a PR for that I'd gladly merge it in.