aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2013-08-27 13:20:17 -0500
committerTed Gould <ted@gould.cx>2013-08-27 13:20:17 -0500
commitbeb91ed2bfa4e53212ebab6ecfccfe60b24c0f3d (patch)
treee6f77d1f2f5f2f7b2456936005ab6b411100fec7 /data
parentdef2cbb6aa5c0eb834fedcb8701d90f64960d449 (diff)
downloadayatana-indicator-datetime-beb91ed2bfa4e53212ebab6ecfccfe60b24c0f3d.tar.gz
ayatana-indicator-datetime-beb91ed2bfa4e53212ebab6ecfccfe60b24c0f3d.tar.bz2
ayatana-indicator-datetime-beb91ed2bfa4e53212ebab6ecfccfe60b24c0f3d.zip
Adding the upstart job configuration
Diffstat (limited to 'data')
-rw-r--r--data/Makefile.am16
-rw-r--r--data/indicator-datetime.conf.in11
-rw-r--r--data/indicator-datetime.service.in3
3 files changed, 19 insertions, 11 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 9bcac72..1875716 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -18,17 +18,17 @@ gsettings_SCHEMAS = com.canonical.indicator.datetime.gschema.xml
EXTRA_DIST += $(gsettings_SCHEMAS)
#
-# the dbus service file
+# the upstart job file
#
-dbus_servicesdir = $(datadir)/dbus-1/services
-dbus_services_DATA = indicator-datetime.service
-dbus_services_in = $(dbus_services_DATA:.service=.service.in)
-$(dbus_services_DATA): $(dbus_services_in)
+upstart_jobsdir = $(datadir)/upstart/sessions
+upstart_jobs_DATA = indicator-datetime.conf
+upstart_jobs_in = $(upstart_jobs_DATA:.conf=.conf.in)
+$(upstart_jobs_DATA): $(upstart_jobs_in)
$(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
-BUILT_SOURCES += $(dbus_services_DATA)
-CLEANFILES += $(dbus_services_DATA)
-EXTRA_DIST += $(dbus_services_in)
+BUILT_SOURCES += $(upstart_jobs_DATA)
+CLEANFILES += $(upstart_jobs_DATA)
+EXTRA_DIST += $(upstart_jobs_in)
#
# the gnome-control-center panel
diff --git a/data/indicator-datetime.conf.in b/data/indicator-datetime.conf.in
new file mode 100644
index 0000000..38d21b5
--- /dev/null
+++ b/data/indicator-datetime.conf.in
@@ -0,0 +1,11 @@
+description "Indicator Date & Time Backend"
+
+start on indicators-loaded or indicator-services-start
+stop on desktop-end or indicator-services-end
+
+env G_MESSAGES_DEBUG=all
+export G_MESSAGES_DEBUG
+
+respawn
+
+exec @libexecdir@/indicator-datetime-service
diff --git a/data/indicator-datetime.service.in b/data/indicator-datetime.service.in
deleted file mode 100644
index e7735ce..0000000
--- a/data/indicator-datetime.service.in
+++ /dev/null
@@ -1,3 +0,0 @@
-[D-BUS Service]
-Name=com.canonical.indicator.datetime
-Exec=@libexecdir@/indicator-datetime-service