diff options
author | Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org> | 2014-08-05 16:46:44 +0200 |
---|---|---|
committer | Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org> | 2014-08-05 16:52:01 +0200 |
commit | 0dfedac753df2f7b065b4d7902e11bf6cf13c55c (patch) | |
tree | 2bab75ada6cbec51883bbe29d4a8499abc4ee620 | |
parent | 102bdac3a2c00237fad447e84bf0216abcc09098 (diff) | |
download | bluez-0dfedac753df2f7b065b4d7902e11bf6cf13c55c.tar.gz bluez-0dfedac753df2f7b065b4d7902e11bf6cf13c55c.tar.bz2 bluez-0dfedac753df2f7b065b4d7902e11bf6cf13c55c.zip |
fix obex systemd service to support multiuser
This allows to run an obexd daemon per user and set obex root directory
according to home user directory.
Bug-Tizen: TC-1436
Change-Id: I3c7c1da11269bd3d7ab2502e49a370e24588de3a
Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
-rw-r--r-- | obexd/src/obex.service.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/obexd/src/obex.service.in b/obexd/src/obex.service.in index 718ce747..b381be2c 100644 --- a/obexd/src/obex.service.in +++ b/obexd/src/obex.service.in @@ -4,7 +4,8 @@ Description=Bluetooth OBEX service [Service] Type=dbus BusName=org.bluez.obex -ExecStart=/bin/sh -c 'if [ -z `ps ax | grep -v grep | grep obexd` ] ; then eval $(tzplatform-get TZ_USER_CONTENT); exec @libexecdir@/obexd -d --noplugin=syncevolution,pcsuite,irmc --symlinks -r $TZ_USER_CONTENT; fi' +ExecStartPre=/bin/sh -c 'if [ ! -d $HOME/content ] ; then /bin/mkdir -p $HOME/content ; fi' +ExecStart=/bin/sh -c 'if [ -z `ps ax | grep -v grep | grep obexd` ] ; then exec /lib/bluetooth/obexd -d --noplugin=syncevolution,pcsuite,irmc --symlinks --root=$HOME/content ; fi' [Install] Alias=dbus-org.bluez.obex.service |