summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdh_systemd_enable7
-rwxr-xr-xdh_systemd_start7
2 files changed, 14 insertions, 0 deletions
diff --git a/dh_systemd_enable b/dh_systemd_enable
index 064adc86..d4c83338 100755
--- a/dh_systemd_enable
+++ b/dh_systemd_enable
@@ -10,6 +10,13 @@ use strict;
use Debian::Debhelper::Dh_Lib;
use File::Find;
+my $deb_host_arch_os = dpkg_architecture_value('DEB_HOST_ARCH_OS');
+if ($deb_host_arch_os ne 'linux')
+{
+ warning("systemd is unsupported on $deb_host_arch_os, doing nothing");
+ exit(0);
+}
+
=head1 SYNOPSIS
B<dh_systemd_enable> [S<I<debhelper options>>] [B<--no-enable>] [B<--name=>I<name>] [S<I<unit file> ...>]
diff --git a/dh_systemd_start b/dh_systemd_start
index 9914bbd1..1540ab7f 100755
--- a/dh_systemd_start
+++ b/dh_systemd_start
@@ -11,6 +11,13 @@ use Debian::Debhelper::Dh_Lib;
use File::Find;
use Cwd qw(getcwd abs_path);
+my $deb_host_arch_os = dpkg_architecture_value('DEB_HOST_ARCH_OS');
+if ($deb_host_arch_os ne 'linux')
+{
+ warning("systemd is unsupported on $deb_host_arch_os, doing nothing");
+ exit(0);
+}
+
=head1 SYNOPSIS
B<dh_systemd_start> [S<I<debhelper options>>] [B<--restart-after-upgrade>] [B<--no-restart-on-upgrade>] [S<I<unit file> ...>]