From: Shane Bryan <shane.bryan@linux.intel.com>
To: ofono@ofono.org
Subject: [PATCH] Add dbus .service file to auto start ofonod
Date: Fri, 22 May 2009 16:03:00 -0700 [thread overview]
Message-ID: <1243033380-2002-1-git-send-email-shane.bryan@linux.intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1543 bytes --]
Signed-off-by: Shane Bryan <shane.bryan@linux.intel.com>
---
configure.ac | 4 ++++
src/Makefile.am | 4 +++-
src/org.ofono.service | 4 ++++
3 files changed, 11 insertions(+), 1 deletions(-)
create mode 100644 src/org.ofono.service
diff --git a/configure.ac b/configure.ac
index 36fec5f..0b452dd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -73,6 +73,10 @@ else
fi
AC_SUBST(DBUS_DATADIR)
+DBUS_SYSTEM_SERVICEDIR="${datadir}/dbus-1/system-services"
+AC_SUBST(DBUS_SYSTEM_SERVICEDIR)
+
+
AC_SUBST([GDBUS_CFLAGS], ['$(DBUS_CFLAGS) -I$(top_srcdir)/gdbus'])
AC_SUBST([GDBUS_LIBS], ['$(top_builddir)/gdbus/libgdbus.la $(DBUS_LIBS)'])
diff --git a/src/Makefile.am b/src/Makefile.am
index 38c97bd..0c618b8 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,8 +1,10 @@
if DATAFILES
dbusdir = @DBUS_DATADIR@
+servicedir = @DBUS_SYSTEM_SERVICEDIR@
dbus_DATA = ofono.conf
+service_DATA = org.ofono.service
endif
sbin_PROGRAMS = ofonod
@@ -35,7 +37,7 @@ AM_CFLAGS = @GTHREAD_CFLAGS@ @GLIB_CFLAGS@ @GDBUS_CFLAGS@ @GATCHAT_CFLAGS@ \
INCLUDES = -I$(top_builddir)/include -I$(top_builddir)
-EXTRA_DIST = ofono.conf
+EXTRA_DIST = ofono.conf org.ofono.service
MAINTAINERCLEANFILES = Makefile.in
diff --git a/src/org.ofono.service b/src/org.ofono.service
new file mode 100644
index 0000000..b98b109
--- /dev/null
+++ b/src/org.ofono.service
@@ -0,0 +1,4 @@
+[D-BUS Service]
+Name=org.ofono
+Exec=/usr/sbin/ofonod
+User=root
--
1.6.0.4
next reply other threads:[~2009-05-22 23:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-22 23:03 Shane Bryan [this message]
2009-05-23 11:35 ` [PATCH] Add dbus .service file to auto start ofonod Marcel Holtmann
2009-05-26 21:58 ` Shane Bryan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1243033380-2002-1-git-send-email-shane.bryan@linux.intel.com \
--to=shane.bryan@linux.intel.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox