summaryrefslogtreecommitdiff
path: root/debian/dh-runit.install
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.
2018-05-27Do not re-enable serice on upgradeDmitry Bogatov
* Do not make symbolic link /etc/runit/runsvdir/default/$name -> /etc/sv/$name part of package files {in which case it will be unconditionally created on upgrade}; instead manage it in maintainer scripts: create it in postinst script on fresh install and remove on purge/remove in postrm. * Force versioned dependency on runit-helper, to make sure that versioned dependency on dh-runit would close #899242
2016-09-03No need to invoke force-shutdown in maintainer script, runit will notice ↵Dmitry Bogatov
disappeared link anyway.
2016-09-03Do not create symbolic link in /etc/runit/runsvdir/ in maintainer script, ↵Dmitry Bogatov
make it part of binary package. It makes sure, that dpkg will make right thing.
2016-08-31Do not create /etc/service symbolic link in maintainer script of -run ↵Dmitry Bogatov
packages. It simplifies maintainace at cost of creation of empty directories in runit binary package. But since it is rare to install runit, but none of -run packages, trade-off seems justified.
2016-06-09Improve handling of maintainer scriptsDmitry Bogatov
* checking for /etc/service symlink is moved into preinst * runscripts are enabled in postinst * runscripts are disables in prerm * supervise directory is purged on 'postrm purge'
2016-06-08wrap-and-sortDmitry Bogatov
2016-06-04add stubs for maintainer scriptsDmitry Bogatov
2016-06-04Initial commitDmitry Bogatov