summaryrefslogtreecommitdiff
path: root/dh_installsystemd
AgeCommit message (Collapse)AuthorFilesLines
2019-11-16Make dh_installsystemd a no-op on non-linuxIgor Pashev1-0/+7
2018-10-28dh_installsystemd: Refactor to suport new maintscripts actions easierFabian Grünbichler1-7/+14
Extracted from MR !14. Signed-off-by: Niels Thykier <niels@thykier.net>
2018-10-28dh_installsystemd.1: Improve docs about --nameNiels Thykier1-6/+22
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-09-14dh_*: Add cli-options NOOP PROMISES for most helpersNiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-09-03dh_installsystemd: Run postrm-systemd-reload-only laterNiels Thykier1-2/+4
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-09-03Make dh_install{init,systemd}'s autoscripts independent [c12]Niels Thykier1-1/+4
Have dh_installinit use the new --skip-systemd-native parameter and let dh_installsystemd always generate autoscript snippets for systemd services. This ensures that dh_installsystemd's snippet will be used for starting the services and will among other ensure that services are properly unmasked before started. Signed-off-by: Niels Thykier <niels@thykier.net>
2018-08-08dh_installinit.1, dh_installsystemd.1: Fix typosJuhani Numminen1-1/+1
2018-06-20dh_installsystemd: Fix handling of symlinked alias units, add relevant testsDaniele Nicolodi1-1/+2
2018-06-20dh_installsystemd: Fix --name option handlingDaniele Nicolodi1-1/+1
The last section of the helper generates maintainer scripts code blocks for mount, path, service, socket, target, and timer units. The filtering associated to the --name option incorrectly looks for file names with a ".tmpfile" suffix and not for a ".timer" suffix. Fix it.
2018-06-20dh_installsystemd: Fix handling of the undocumented --no-also optionDaniele Nicolodi1-6/+7
The --no-also option not only affected handling of the Also= directive but also inhibited handling of the Alias= directive. Fix it. Add a few comments.
2018-06-20dh_installsystemd: Improve error reporting if unit file is not foundDaniele Nicolodi1-3/+5
2018-06-20dh_installsystemd: Code cleanup, no functional changesDaniele Nicolodi1-82/+79
2018-06-16dh_installsystemd: SimplifyDaniele Nicolodi1-47/+41
Simplify and move to a function the code responsible to list all installed units. It is much simpler to refer to unit files simply as their file name without keeping track of their complete path as the later can be readily computed because all unit files must be installed into usr/lib/systemd/system. This removes some confusion and highlight a bug where code blocks for handling units installed at the wrong location would be emitted if relative file paths were specified on the command line. Fix the tests accordingly.
2018-06-16dh_installsystemd: Simplify error handlingDaniele Nicolodi1-16/+0
The intention was to carry on all possible work and report missing unit files specified on the command line at the end of execution. However, now the scripts fails immediately when it tries to read the content of the unit filed and the late check is never executed. Remove the late check.
2018-06-16dh_installsystemd: RefactorDaniele Nicolodi1-31/+48
Make code easier to grock by splitting operation into three phases. The number of binary packages should be small. Iterating three times through their names should not impact performances.
2018-06-13dh_installsystemd: Improve man pageDaniele Nicolodi1-52/+46
2018-05-11Pass the basename of the tmpfiles to "systemd-tmpfiles --create"Niels Thykier1-2/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-01-03dh_installsystemd: Fix NOOP PROMISENiels Thykier1-1/+1
Signed-off-by: Niels Thykier <niels@thykier.net>
2018-01-03dh_install{init,systemd}: Re-order service autosnippetsNiels Thykier1-3/+8
Depends on e6870ceafb9d51800de86a7106cdfb4ce9c9dad8 Closes: Debian#885998, #885998 Signed-off-by: Niels Thykier <niels@thykier.net>
2017-12-16dh_installsystemd: Enable dh_installsystemd in old compat levelsNiels Thykier1-2/+0
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-11-10dh_installsystemd: Avoid invalid scripts when there are no unitsFelipe Sateler1-32/+34
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-11-10Revert "dh_installsystemd: Avoid invalid scripts when there are no units"Niels Thykier1-12/+9
This reverts commit 86d05e41e4549ca01aa27ebf12f68da84b2d45fd.
2017-11-09dh_installsystemd: Avoid invalid scripts when there are no unitsNiels Thykier1-9/+12
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-11-04dh_installsystemd: Optimize the tmpfiles searchNiels Thykier1-5/+3
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-11-04dh_installsystemd: Fix incorrect error for "missing" filesNiels Thykier1-0/+16
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-10-14Include $! in error messagesNiels Thykier1-2/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-10-13dh_installsystemd: if --name is given, only generate maintainer scripts for ↵Felipe Sateler1-1/+13
matching files Closes: #870768
2017-10-13dh_installsystemd: Properly quote unit names in autoscriptsNiels Thykier1-3/+3
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-10-13Remove duplicate additions to @installed_unitsFelipe Sateler1-1/+0
2017-10-13dh_installsystemd: Generate postinst for tmpfilesNiels Thykier1-4/+21
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-10-13dh_installsystemd: Make open failure a hard errorNiels Thykier1-13/+6
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-10-13dh_installsystemd: Drop now unnecessary dependency on init-system-helpersNiels Thykier1-4/+0
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-10-13dh_installsystemd: Fix bug in handling of template units (see aaf90aff)Niels Thykier1-8/+6
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-10-13Fix enabling multiple times of unitsFelipe Sateler1-1/+1
2017-10-13dh_installsystemd: Regex-escape two directories used in regexesNiels Thykier1-2/+2
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-10-13dh_installsystemd: Update documentationNiels Thykier1-8/+37
Signed-off-by: Niels Thykier <niels@thykier.net>
2017-10-13Add dh_installsystemd script with a simple testFelipe Sateler1-0/+351