Package: unattended-upgrades Version: 0.82.6 Severity: wishlist User: pkg-systemd-maintain...@lists.alioth.debian.org Usertags: systemd-units
Dear maintainer, please add the attached systemd service file. For more details on systemd packaging, see http://wiki.debian.org/Systemd/Packaging In case of any questions, feel free to drop by in #debian-systemd or send an email to pkg-systemd-maintain...@lists.alioth.debian.org -- System Information: Debian Release: jessie/sid APT prefers testing APT policy: (990, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: armel i386 Kernel: Linux 3.13-1-amd64 (SMP w/8 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
>From 45fed1d2c69d0f5e613e8d07dab36732e83fd772 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg <stapelb...@debian.org> Date: Sat, 26 Apr 2014 23:54:15 +0200 Subject: [PATCH] Add native systemd service file. --- debian/control | 2 +- debian/rules | 2 +- debian/unattended-upgrades.service | 12 ++++++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 debian/unattended-upgrades.service diff --git a/debian/control b/debian/control index ac09aa3..ad0f141 100644 --- a/debian/control +++ b/debian/control @@ -5,7 +5,7 @@ Maintainer: Michael Vogt <m...@debian.org> Build-Depends: debhelper (>= 7.0.50~), po-debconf Build-Depends-Indep: python (>= 2.6.6-3~), python3-distutils-extra, python3-setuptools, python-dev, python3-dev, python-coverage, pep8, - pyflakes, python-apt, python3-apt, lsb-release + pyflakes, python-apt, python3-apt, lsb-release, dh-systemd (>= 1.18) Standards-Version: 3.9.3 Vcs-Bzr: http://bzr.debian.org/bzr/apt/unattended-upgrades/debian-sid XS-Testsuite: autopkgtest diff --git a/debian/rules b/debian/rules index b6e62c5..c34db3e 100755 --- a/debian/rules +++ b/debian/rules @@ -4,7 +4,7 @@ PYTHON=python3 DIST=$(shell dpkg-vendor --query Vendor) %: - dh $@ + dh $@ --with=systemd override_dh_auto_build: # copy the right template into place diff --git a/debian/unattended-upgrades.service b/debian/unattended-upgrades.service new file mode 100644 index 0000000..f0dd143 --- /dev/null +++ b/debian/unattended-upgrades.service @@ -0,0 +1,12 @@ +[Unit] +Description=Unattended Upgrades +DefaultDependencies=no +Before=shutdown.target reboot.target halt.target +Documentation=man:unattended-upgrade(8) + +[Service] +Type=oneshot +ExecStart=/usr/share/unattended-upgrades/unattended-upgrade-shutdown + +[Install] +WantedBy=shutdown.target -- 1.9.0