From b49a80e2a63c6cd7e627192a6e62133debfc5cd0 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Fri, 5 Jan 2018 12:14:12 +0100 Subject: systemd unit registration and automatic activation --- debian/batteriewarner.service | 9 +++++++++ debian/control | 2 +- debian/rules | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 debian/batteriewarner.service (limited to 'debian') diff --git a/debian/batteriewarner.service b/debian/batteriewarner.service new file mode 100644 index 0000000..7b6b670 --- /dev/null +++ b/debian/batteriewarner.service @@ -0,0 +1,9 @@ +[Unit] +Description=Batteriewarner Daemon + +[Service] +Type=simple +ExecStart=/usr/sbin/batteriewarner + +[Install] +WantedBy=multi-user.target \ No newline at end of file diff --git a/debian/control b/debian/control index 4a3a94f..3715ba7 100644 --- a/debian/control +++ b/debian/control @@ -1,6 +1,6 @@ Source: batteriewarner Maintainer: Yves Fischer -Build-Depends: debhelper (>= 9), dh-cargo, rustc +Build-Depends: debhelper (>= 9), dh-cargo, rustc, dh-systemd (>= 1.5) Package: batteriewarner Architecture: any diff --git a/debian/rules b/debian/rules index 8f6d5dc..56e44e0 100755 --- a/debian/rules +++ b/debian/rules @@ -1,7 +1,7 @@ #!/usr/bin/make -f %: - dh $@ + dh ${@} --with=systemd override_dh_auto_clean: cargo clean -- cgit v1.2.1