Age | Commit message (Collapse) | Author |
|
Create marker file in /usr/share, that is checked by "invoke-run". If
marker file is absent, package was unstalled, but not purged (runscripts
are conffiles), and service must be put into "down" state.
To not break already-existing runscript, using "invoke-run", such check
is only performed when it is known, that marker file existed. It can be
known by checking presence of /etc/sv/{name}/.meta/installed.
Gbp-Closes: #929693
|
|
Introduce new function "create_empty_file" and reuse it for
side-effect of creating parent directories in
"template_from_data_directory" and to avoid manual open/close calls
in main function.
|
|
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.
|
|
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.
|
|
|
|
(Closes: #924903)
|
|
|
|
package, that introduced runscript. (Closes: #923233)
|
|
|
|
|
|
|
|
|
|
runscript.
|
|
Instead, generate conflict relation with old `runit' version, not
providing `runit-log' user.
|
|
* Make auto-generated runscripts invoke svlogd(8) as `runit-log' user.
* Impose dependency on (runit >= 2.1.2-20), which provides `runit-log'
user.
|
|
* 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
|
|
fixes and improvements in 'dh-runit' without rebuild.
|
|
backward-incompatible change, hence the version major bump, but I am unaware of any actual users of this option.
|
|
using here-doc notation.
|
|
|
|
script.
|
|
make it part of binary package. It makes sure, that dpkg will make right thing.
|
|
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.
|
|
by runit binary package. It saved us trouble of ensuring, that directory is removed at apporiate time.
|
|
|
|
|
|
with other tools (supply dh_runit arguments on command line) and make
format extensible. See dh_runit(1).
* Introduce support for automatic generation of log scripts.
|
|
|
|
|
|
|
|
* 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'
|
|
|
|
|
|
|
|
* ensure that run/finish scripts are executable
* create 'supervise' symlink to not pollute /etc/ directory
|
|
|
|
|
|
|