aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2013-05-29 11:18:05 -0500
committerTed Gould <ted@gould.cx>2013-05-29 11:18:05 -0500
commit477cf6ad04b73e4d448abc6925cdb328d63521c3 (patch)
tree5b1df681b4df7333e7b7a0547cef3cd40d8db327
parentfe77f0ec399ec462cef43f98cbcb95d97edfa361 (diff)
downloadayatana-indicator-application-477cf6ad04b73e4d448abc6925cdb328d63521c3.tar.gz
ayatana-indicator-application-477cf6ad04b73e4d448abc6925cdb328d63521c3.tar.bz2
ayatana-indicator-application-477cf6ad04b73e4d448abc6925cdb328d63521c3.zip
Adding an upstart job configuration
-rw-r--r--.bzrignore1
-rw-r--r--data/Makefile.am10
-rw-r--r--data/indicator-application.conf.in16
3 files changed, 26 insertions, 1 deletions
diff --git a/.bzrignore b/.bzrignore
index f73cbd7..618ca76 100644
--- a/.bzrignore
+++ b/.bzrignore
@@ -110,3 +110,4 @@ bindings/mono/policy.0.0.appindicator-sharp.config
bindings/mono/policy.0.0.appindicator-sharp.dll
src/libapplication_la-generate-id.lo
src/libappindicator_la-generate-id.lo
+indicator-application.conf
diff --git a/data/Makefile.am b/data/Makefile.am
index c142c4e..12ee39c 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -5,13 +5,21 @@ dbus_services_DATA = indicator-application.service
%.service: %.service.in
sed -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
+upstart_jobsdir = $(datadir)/upstart/sessions/
+upstart_jobs_DATA = indicator-application.conf
+
+%.conf: %.conf.in
+ sed -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
+
overridedir = $(pkgdatadir)
override_DATA = ordering-override.keyfile
EXTRA_DIST = \
indicator-application.service.in \
+ indicator-application.conf.in \
ordering-override.keyfile
CLEANFILES = \
- indicator-application.service
+ indicator-application.service \
+ indicator-application.conf
diff --git a/data/indicator-application.conf.in b/data/indicator-application.conf.in
new file mode 100644
index 0000000..2e452a3
--- /dev/null
+++ b/data/indicator-application.conf.in
@@ -0,0 +1,16 @@
+description "Indicator Application Service"
+author "Ted Gould <ted@canonical.com>"
+
+start on indicators-loaded
+stop on desktop-end
+
+emits appindicators-start appindicators-end
+
+env G_MESSAGES_DEBUG=all
+export G_MESSAGES_DEBUG
+
+respawn
+
+exec @libexecdir@/indicator-application-service
+
+pre-stop initctl emit appindicators-end