Skip to content

Use sv binary to manage svlogd process

Balasankar 'Balu' C requested to merge restart-log-binary into master

Related to #2166 (closed)

Following what upstream does. We were using the control file to do this, but upstream uses the sv binary to do this - https://github.com/chef-cookbooks/runit/blob/master/libraries/helpers.rb#L199

However, for reload, upstream sends force-reload, which is TERM + CONT signals. But, we were writing h to the control file, which sends HUP signal. I followed what we were doing there, not what upstream does, and used reload instead of force-reload. This requires version 2.1.2 of runit.

2.1.2
Sun, 10 Aug 2014 18:01:54 +0000
  * doc/index.html: reorder, cleanup links to distributions; add Linux
    from Scratch, Finnix, VServer.
  * sv.c: properly format status command's output on failure cases.
  * sv.c: support optional LSB init script actions reload and
    try-restart.
  * man/sv.8: "sv exit" does not send a TERM signal to the log service
    (thx Jonathan Nieder).
  * fmt_ptime.c: 64 bits time_t fix for svlogd (tnx Jérémie
    Courrèges-Anglas).
  * sv.c: fix typo that may lead to wrong output from sv when reporting
    status of multiple service directories.
  * doc/index.html: add deepOfix Mail Server to list of distributions
    that include runit (thx Debayan Banerjee).
  * doc/useinit.html: update description on how to use with upstart
    (thx Gabriel de Perthuis).
  * doc/index.html: add Dragora GNU/Linux to list of distributions that
    use runit as default init scheme (thx Matias A. Fonzo).
  * doc/index.html: add ArchLinux to list of distributions that include
    runit (thx Kevin Berry).
Edited by GitLab Release Tools Bot

Merge request reports