aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorTed Gould <ted@ubuntu.com>2017-05-15 12:20:44 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-05-15 12:20:44 +0200
commita0993948b82c63a0c2687fde303c5993545bb693 (patch)
treea0d601864aafad420a878fc9281dba89ac886528 /data
parent9afe090a17da59e60706a13ddafd3e8ef2f97869 (diff)
downloadayatana-indicator-application-a0993948b82c63a0c2687fde303c5993545bb693.tar.gz
ayatana-indicator-application-a0993948b82c63a0c2687fde303c5993545bb693.tar.bz2
ayatana-indicator-application-a0993948b82c63a0c2687fde303c5993545bb693.zip
Adding a systemd user unit.
Diffstat (limited to 'data')
-rw-r--r--data/Makefile.am15
-rw-r--r--data/ayatana-indicator-application.override1
-rw-r--r--data/ayatana-indicator-application.service.in8
3 files changed, 22 insertions, 2 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index bc5260d..3851097 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -16,12 +16,23 @@ xdg_autostart_DATA = ayatana-indicator-application.desktop
overridedir = $(pkgdatadir)
override_DATA = ordering-override.keyfile
+%.service: %.service.in
+ $(AM_V_GEN) sed -e "s|\@pkglibexecdir\@|$(pkglibexecdir)|" $< > $@
+
+systemddir = $(SYSTEMD_USERDIR)
+systemd_DATA = ayatana-indicator-application.service
+
+upstartsystemdoverridedir = $(datadir)/upstart/systemd-session/upstart
+upstartsystemdoverride_DATA = ayatana-indicator-application.override
+
EXTRA_DIST = \
ayatana-indicator-application.desktop.in \
ayatana-indicator-application.conf.in \
+ ayatana-indicator-application.service.in \
+ ayatana-indicator-application.override \
ordering-override.keyfile
CLEANFILES = \
ayatana-indicator-application.conf \
- ayatana-indicator-application.desktop
-
+ ayatana-indicator-application.desktop \
+ ayatana-indicator-application.service
diff --git a/data/ayatana-indicator-application.override b/data/ayatana-indicator-application.override
new file mode 100644
index 0000000..2905494
--- /dev/null
+++ b/data/ayatana-indicator-application.override
@@ -0,0 +1 @@
+manual
diff --git a/data/ayatana-indicator-application.service.in b/data/ayatana-indicator-application.service.in
new file mode 100644
index 0000000..b1068d0
--- /dev/null
+++ b/data/ayatana-indicator-application.service.in
@@ -0,0 +1,8 @@
+[Unit]
+Description=Ayatana Indicator Application Service
+PartOf=graphical-session.target
+After=ayatana-indicators-pre.target
+
+[Service]
+ExecStart=@pkglibexecdir@/ayatana-indicator-application-service
+Restart=on-failure