diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2014-05-13 18:41:17 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2014-05-13 18:41:17 +0400 |
commit | e1dcd7e330de580b410722615cb3f05a23466bf8 (patch) | |
tree | 3ac2561debd7b40a79cd802fb7b311b877eff5f3 /script/dh_systemd_start | |
parent | a51aa9741020d41009c462f906505f9d322f636d (diff) | |
download | init-system-helpers-master.tar.gz |
init-system-helpers (1.18+dyson1) unstable; urgency=mediumHEADdyson/1.18+dyson1master
* Package for Dyson
* deb-systemd-helper and deb-systemd-invoke work only on Linux; on
other archs they do nothing and return 0
* dh_systemd_enable and dh_systemd_start work only for Linux; for
other archs they do nothing and return 0
Diffstat (limited to 'script/dh_systemd_start')
-rwxr-xr-x | script/dh_systemd_start | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/script/dh_systemd_start b/script/dh_systemd_start index bd02d92..ccd6c1d 100755 --- a/script/dh_systemd_start +++ b/script/dh_systemd_start @@ -12,6 +12,13 @@ use File::Find; use Text::ParseWords qw(shellwords); # in core since Perl 5 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> ...>] @@ -66,6 +73,9 @@ can detect corresponding SysV init scripts. The default sequence in B<dh> does the right thing, this note is only relevant when you are calling B<dh_systemd_start> manually. +This command currently works for Linux only, for other Debian archs +it does nothing and returns 0; + =cut init(options => { |