diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-04-19 11:32:23 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-04-19 18:17:43 +0200 |
commit | 3f6dcaacd7abc85ebed40053a3ce73bc7753ddf9 (patch) | |
tree | 381706b4f6e38094c8af1feec58ac2a98bdad95a /conf/afm-user-daemon.service.in | |
parent | 51a86fcd6e4f199009888b5a106bf472f1b7c742 (diff) |
Improve environment setting
Some environment variable were set in the configuration files.
This wasn't a valuable solution. Allowing now system tning to
put environment variables in files of /etc/afm/unit.env.d
is much more flexible.
Change-Id: I1796061c9055a2860f0bbab340aa3a6e7b85dd3d
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'conf/afm-user-daemon.service.in')
-rw-r--r-- | conf/afm-user-daemon.service.in | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/conf/afm-user-daemon.service.in b/conf/afm-user-daemon.service.in new file mode 100644 index 0000000..f536c82 --- /dev/null +++ b/conf/afm-user-daemon.service.in @@ -0,0 +1,16 @@ +[Unit] +Description=Application Framework Master, User side + +[Service] +Type=dbus +BusName=org.AGL.afm.user +ExecStart=/usr/bin/afm-user-daemon --user-dbus=unix:path=%t/bus +Environment=AFM_APP_INSTALL_DIR=%%r +EnvironmentFile=-@afm_confdir@/unit.env.d/* +Restart=on-failure +RestartSec=5 + + +[Install] +WantedBy=default.target + |