use dh-systemd to install appropriately. Thanks to Alexandre Detiste
for the patch. Closes: #760446
* Update Standards-Version to 3.9.5 (no changes needed)
* Include /lib/lsb/init-functions in the init script
+ * Add systemd service file and use dh-systemd to install
+ appropriately. Thanks to Alexandre Detiste for the patch.
+ Closes: #760446
-- Steve McIntyre <93sam@debian.org> Fri, 05 Sep 2014 16:56:21 +0100
Section: admin
Priority: extra
Maintainer: Steve McIntyre <93sam@debian.org>
-Build-Depends: debhelper (>= 8)
+Build-Depends: debhelper (>= 8), dh-systemd (>= 1.5)
Standards-Version: 3.9.5
Vcs-Browser: http://git.einval.com/cgi-bin/gitweb.cgi?p=fake-hwclock.git
Vcs-Git: http://git.einval.com/git/fake-hwclock.git
--- /dev/null
+[Unit]
+Description=Restore / save the current clock
+Before=systemd-fsck-root.service
+
+[Service]
+EnvironementFile=-/etc/default/fake-hwclock
+ExecStart=fake-hwclock load $FORCE
+ExecStop=fake-hwclock save
+
+[Install]
+WantedBy=multi-user.target
dh_installchangelogs
dh_installdocs
dh_installcron
+ dh_systemd_enable
dh_installinit --no-start -- start 02 S . stop 02 0 1 6 .
+ dh_systemd_start
dh_installman
dh_compress
dh_fixperms