From f32659adb7511d2c3779cfc3ac4c0a71294fc7a6 Mon Sep 17 00:00:00 2001 From: Eizen Date: Wed, 21 Dec 2016 01:57:16 -0300 Subject: [PATCH] Add systemd service unit to contrib Apply sed to reflect prefix but don't install it and clean service file in makefile. Add service file to gitignore --- .gitignore | 1 + Makefile | 2 ++ contrib/dunst.systemd.service.in | 11 +++++++++++ 3 files changed, 14 insertions(+) create mode 100644 contrib/dunst.systemd.service.in diff --git a/.gitignore b/.gitignore index 5173bcb..ac202f0 100644 --- a/.gitignore +++ b/.gitignore @@ -5,5 +5,6 @@ vgcore.* config.h dunst.1 org.knopwob.dunst.service +dunst.systemd.service dunstify test/test diff --git a/Makefile b/Makefile index fe55411..4f5ae1e 100644 --- a/Makefile +++ b/Makefile @@ -47,6 +47,7 @@ debug: ${OBJ} clean-dunst: rm -f dunst ${OBJ} main.o rm -f org.knopwob.dunst.service + rm -f dunst.systemd.service clean-dunstify: rm -f dunstify @@ -62,6 +63,7 @@ docs/dunst.1: docs/dunst.pod service: @sed "s|##PREFIX##|$(PREFIX)|" org.knopwob.dunst.service.in > org.knopwob.dunst.service + @sed "s|##PREFIX##|$(PREFIX)|" contrib/dunst.systemd.service.in > dunst.systemd.service install-dunst: dunst doc mkdir -p ${DESTDIR}${PREFIX}/bin diff --git a/contrib/dunst.systemd.service.in b/contrib/dunst.systemd.service.in new file mode 100644 index 0000000..9ece8da --- /dev/null +++ b/contrib/dunst.systemd.service.in @@ -0,0 +1,11 @@ +[Unit] +Description=Dunst notification daemon + +[Service] +Type=simple +ExecStart=##PREFIX##/bin/dunst +Environment=DISPLAY=:0 + +[Install] +WantedBy=multi-user.target +