summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorMichael Stapelberg <stapelberg@debian.org>2013-11-11 23:15:49 +0100
committerMichael Stapelberg <michael@stapelberg.de>2013-11-11 23:15:49 +0100
commit3c89c295461be17d29d0dd988f3516c6cd4412c6 (patch)
treecf76a26c03d8792e5c4715e4fa2d0a766ddc5de7 /script
parent5a778c5351ab55d96babd4388d0e8683e7e7786e (diff)
downloadinit-system-helpers-3c89c295461be17d29d0dd988f3516c6cd4412c6.tar.gz
Install debian/$package.socket files, just like .service files
They will get enabled when they have an [Install] section. Some special handling for .socket files when upgrading might be necessary at some point in time. We’ll see how it goes. Closes: #718592
Diffstat (limited to 'script')
-rwxr-xr-xscript/dh_systemd_enable10
1 files changed, 10 insertions, 0 deletions
diff --git a/script/dh_systemd_enable b/script/dh_systemd_enable
index 02dc4ad..ea61301 100755
--- a/script/dh_systemd_enable
+++ b/script/dh_systemd_enable
@@ -135,6 +135,16 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
doit("install","-p","-m644",$service,"$path/$script.service");
}
+ my $socket=pkgfile($package,"socket");
+ if ($socket ne '') {
+ my $path="$tmpdir/lib/systemd/system";
+ if (! -d "$path") {
+ doit("install","-d","$path");
+ }
+
+ doit("install","-p","-m644",$socket,"$path/$script.socket");
+ }
+
my $tmpfile=pkgfile($package,"tmpfile");
if ($tmpfile ne '') {
my $path="$tmpdir/usr/lib/tmpfiles.d";