Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2013-09-19 | Store masked state to respect user’s maskingdebian/1.10 | Michael Stapelberg | 3 | -6/+37 | |
We cannot just unconditionally unmask services on installation time, otherwise “systemctl mask” executed by the user will be reversed. To that end, files in /var/lib/systemd/deb-systemd-helper-masked/ signal that d-s-h masked the service and is allowed to unmask it. | |||||
2013-09-19 | delete obsolete test | Michael Stapelberg | 1 | -13/+0 | |
This particular test was written under the (wrong) assumption that masking a service is pointing its install (!) symlink to /dev/null, while in reality it’s a different symlink. | |||||
2013-09-19 | update changelog, bump dependency on i-s-h | Michael Stapelberg | 2 | -1/+10 | |
2013-09-19 | i-s-h: delete the masked state dir in postinst | Michael Stapelberg | 1 | -0/+6 | |
2013-09-19 | Fix mask/unmask implementation (Thanks Michael Biebl) | Michael Stapelberg | 2 | -55/+32 | |
Turns out that I mistakenly linked the same symlinks to /dev/null that one would normally link to the service file, but mask links are orthogonal to that. As an example, for rsyslog.service, the mask link is /etc/systemd/system/rsyslog.service -> /dev/null, not /etc/systemd/system/mult-user.targe.wants/rsyslog.service fixes #714903 | |||||
2013-09-19 | Bugfix: check whether /var/lib/systemd/deb-systemd-helper-enabled exists ↵ | Michael Stapelberg | 1 | -1/+3 | |
(Thanks Alf Gaida) fixes #723693 | |||||
2013-09-19 | d-s-h: add safety check for unmask | Michael Stapelberg | 1 | -1/+5 | |
2013-09-18 | bump dependency on i-s-hdebian/1.9 | Michael Stapelberg | 1 | -1/+1 | |
2013-09-18 | update changelog | Michael Stapelberg | 1 | -0/+12 | |
2013-09-15 | update maintscripts to mask a service while removed (but not purged) | Michael Stapelberg | 3 | -7/+14 | |
fixes #722521, #714903 | |||||
2013-09-15 | use the state file contents for mask/unmask | Michael Stapelberg | 1 | -6/+8 | |
This is necessary because when removing, the original service file might not be around anymore. | |||||
2013-09-15 | d-s-h: implement mask and unmask commands | Michael Stapelberg | 2 | -5/+112 | |
2013-09-14 | tests: verify that masked services are not re-enabled | Michael Stapelberg | 1 | -0/+13 | |
2013-09-14 | dh_systemd_enable: skip unit files without an [Install] section | Michael Stapelberg | 1 | -0/+18 | |
fixes #721241 | |||||
2013-09-14 | postinst: fix old files in /var/lib/systemd/deb-systemd-helper-enabled | Michael Stapelberg | 1 | -0/+12 | |
2013-09-12 | Bugfix: create files with permission 0644 | Michael Stapelberg | 1 | -0/+2 | |
fixes #722524 | |||||
2013-08-27 | dh_systemd_enable: document debian/package.{service,tmpfile} | Michael Stapelberg | 1 | -0/+17 | |
While these files are installed in dh_installinit for historic reasons, many people are looking for documentation in dh_systemd_enable. And they are not completely wrong, since dh_systemd_enable needs to install these files anyway, and will be the only script to do so in the future. | |||||
2013-07-25 | bump dependency on i-s-hdebian/1.8 | Michael Stapelberg | 1 | -1/+1 | |
2013-07-24 | update changelog | Michael Stapelberg | 1 | -0/+11 | |
2013-07-24 | autoscripts: use --quiet for was-enabled | Michael Stapelberg | 2 | -2/+2 | |
2013-07-24 | deb-systemd-helper: support --quiet for (is|was)-enabled | Michael Stapelberg | 1 | -2/+2 | |
2013-07-24 | deb-systemd-helper: fix exit code for was-enabled | Michael Stapelberg | 1 | -0/+1 | |
2013-07-24 | s/debian-is-installed/debian-installed/ | Michael Stapelberg | 1 | -1/+1 | |
2013-07-24 | dh_systemd_enable: use basename of the unit files | Michael Stapelberg | 1 | -2/+3 | |
2013-07-24 | refactor state file reading, dump entries for debugging | Michael Stapelberg | 1 | -23/+23 | |
2013-07-24 | DRY: introduce dsh_state_path(), use $dsh_state as consistent variable name | Michael Stapelberg | 1 | -32/+36 | |
2013-07-24 | add test for deb-systemd-helper disable | Michael Stapelberg | 1 | -0/+8 | |
2013-07-24 | update files atomically to be more robust when being cancelled | Michael Stapelberg | 1 | -15/+33 | |
2013-07-24 | dh_systemd_enable: deal with changes in the [Install] section | Michael Stapelberg | 3 | -12/+24 | |
autoscripts/postinst-systemd-dont-enable now uses update-state instead of enable/disable which fixes accidental re-disabling of services. Both autoscripts call enable to create new symlinks, if necessary. Both autoscripts call update-state in case the service is not enabled in order to update the state file so that all service files will be removed on purge. See also http://bugs.debian.org/#717603 | |||||
2013-07-24 | update testsuite to also cover more complex units and updates | Michael Stapelberg | 3 | -7/+240 | |
Updates that add new service files or remove existing ones are now also tested (using update-state). Furthermore, the Also= and Alias= statements in unit files are now tested, too. | |||||
2013-07-24 | refactor; implement update-state | Michael Stapelberg | 1 | -49/+83 | |
2013-07-24 | Bugfix: Open the file for reading and appending, seek to the beginning | Michael Stapelberg | 1 | -1/+2 | |
Otherwise, duplicate entries will end up in the state file. This bugfix was brought to you by the new test suite \o/. | |||||
2013-07-23 | deb-systemd-helper: implement debian-installed command | Michael Stapelberg | 1 | -2/+19 | |
2013-07-23 | deb-systemd-helper: implement was-enabled | Michael Stapelberg | 2 | -1/+200 | |
2013-07-23 | remove inaccurate statement about systemctl requiring a running systemd | Michael Stapelberg | 1 | -2/+1 | |
2013-07-23 | add README for the test cases | Michael Stapelberg | 1 | -0/+10 | |
2013-07-23 | add test case for deb-systemd-helper | Michael Stapelberg | 1 | -0/+137 | |
2013-07-16 | use pod2man and install manpages, update changelogdebian/1.7 | Michael Stapelberg | 5 | -1/+18 | |
2013-07-16 | Drop dependency on libmodule-install-perl (Closes: #716929) | Jeremy Bicha | 4 | -32/+7 | |
2013-07-15 | Fix syntax error in dh_systemd_startdebian/1.6 | Michael Stapelberg | 2 | -1/+6 | |
2013-07-14 | bump dependency on i-s-h for --quietdebian/1.5 | Michael Stapelberg | 1 | -1/+1 | |
2013-07-14 | dh_systemd_start: add --no-start | Michael Stapelberg | 2 | -1/+8 | |
2013-07-14 | update changelog | Michael Stapelberg | 1 | -1/+3 | |
2013-07-14 | dh_systemd_enable: add --no-enable, deb-systemd-helper: add --quiet | Michael Stapelberg | 3 | -5/+34 | |
The latter is necessary to make the former work without confusing users :). | |||||
2013-07-01 | deb-systemd-helper: clean up /var/lib/systemd/deb-systemd-helper-enabled and ↵ | Michael Stapelberg | 2 | -0/+29 | |
/etc/systemd to pass a piuparts run. | |||||
2013-06-27 | update changelog, bump dependency in dh_systemd_enabledebian/1.4 | Michael Stapelberg | 2 | -1/+8 | |
2013-06-27 | Bugfix: ensure state directory exists before writing to it (Thanks uau, bigon) | Michael Stapelberg | 1 | -0/+1 | |
2013-06-26 | deb-systemd-invoke: remove wrong documentation (copy & paste mistake) | Michael Stapelberg | 1 | -5/+0 | |
2013-06-26 | init-system-helpers: add Breaks: systemd (<< 44-12) | Michael Stapelberg | 1 | -0/+1 | |
This ensures that on updates from stable, at least systemd 44-12 is present, which is the first version where the old trigger gained support for checking whether i-s-h is installed. | |||||
2013-06-19 | update package description to reflect dh_systemd_* splitdebian/1.3 | Michael Stapelberg | 1 | -4/+5 | |