summaryrefslogtreecommitdiff
path: root/t
AgeCommit message (Collapse)Author
2019-05-28Refactor creation of logscriptDmitry Bogatov
Instead of using interpolation and here-strings, write function that renders mustache template. This approach makes code cleaner and more scalable. * data/logscript: add mustach template of 'log/run' script, that is installed when "logscript" option in effect. * Makefile: set DH_RUNIT_DATADIR variable in "check" target. This way, templates from ./data/ directory are used, not from system location. * debian/control: add dependency on Text::Hogan library -- implementation of "mustache" templating standard. * dh_runit(template_from_data_directory): new function * dh_runit: install 'log/run' with "template_from_data_directory" function. * t/928935.t: check that "logscript" option correctly creates 'log/run' script, with correct permissions.
2019-05-28Change path of "noreplace" flag fileDmitry Bogatov
First of all, "noreplace" flag file is architecture-independent and is not meant to be edited by system administrator, so it does not belong to /var. New namings scheme provides more options for extensibility, i.e introducing more flag files. While it is definitely not good thing to have, it seems, unfortunately, necessary to support, e.g uninstalled-not-purged situation.
2019-05-14Add option to mark service as non-restartableDmitry Bogatov
2019-05-14Create package for test-related code.Dmitry Bogatov
2019-03-20Make permissions of supervise directories 0700, as created by sv(8). ↵Dmitry Bogatov
(Closes: #924903)
2019-03-20Write test suite for #924903Dmitry Bogatov