From f77b257981d4b9951f7214bbc80b9ca2e212f26e Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 19 Feb 2014 23:00:59 -0600 Subject: Upstart job configuration --- data/Makefile.am | 10 +++++++++- data/indicator-messages.conf.in | 10 ++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 data/indicator-messages.conf.in diff --git a/data/Makefile.am b/data/Makefile.am index 6cb7a6d..b89fa51 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -1,5 +1,11 @@ SUBDIRS = icons +upstart_jobsdir = $(datadir)/upstart/sessions/ +upstart_jobs_DATA = indicator-messages.conf + +%.conf: %.conf.in + $(AM_V_GEN) sed -e "s|\@pkglibexecdir\@|$(pkglibexecdir)|" $< > $@ + gsettings_SCHEMAS = com.canonical.indicator.messages.gschema.xml @GSETTINGS_RULES@ @@ -7,6 +13,8 @@ indicatordir = $(INDICATOR_DIR) dist_indicator_DATA = com.canonical.indicator.messages EXTRA_DIST = \ + indicator-messages.conf.in \ $(gsettings_SCHEMAS) -CLEANFILES = +CLEANFILES = \ + $(upstart_jobs_DATA) diff --git a/data/indicator-messages.conf.in b/data/indicator-messages.conf.in new file mode 100644 index 0000000..b300a57 --- /dev/null +++ b/data/indicator-messages.conf.in @@ -0,0 +1,10 @@ +description "Indicator Messages Service" + +start on indicator-services-start +stop on desktop-end or indicator-services-end + +respawn +respawn limit 2 10 + +exec @pkglibexecdir@/indicator-messages-service + -- cgit v1.2.3