runit icon indicating copy to clipboard operation
runit copied to clipboard

sv_timeout for RHEL

Open maxwell-gregory opened this issue 9 years ago • 1 comments

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?

maxwell-gregory avatar Jul 19 '16 00:07 maxwell-gregory

@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.

tas50 avatar Dec 03 '17 03:12 tas50