summaryrefslogtreecommitdiffstats
path: root/conf/afm-system-daemon.service.in
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-04-19 11:32:23 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-04-19 18:17:43 +0200
commit3f6dcaacd7abc85ebed40053a3ce73bc7753ddf9 (patch)
tree381706b4f6e38094c8af1feec58ac2a98bdad95a /conf/afm-system-daemon.service.in
parent51a86fcd6e4f199009888b5a106bf472f1b7c742 (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-system-daemon.service.in')
-rw-r--r--conf/afm-system-daemon.service.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/conf/afm-system-daemon.service.in b/conf/afm-system-daemon.service.in
new file mode 100644
index 0000000..77e1f1b
--- /dev/null
+++ b/conf/afm-system-daemon.service.in
@@ -0,0 +1,15 @@
+[Unit]
+Description=Application Framework Master, system side
+
+[Service]
+BusName=org.AGL.afm.system
+User=afm
+Group=afm
+ExecStart=/usr/bin/afm-system-daemon
+Restart=on-failure
+RestartSec=5
+CapabilityBoundingSet=CAP_DAC_OVERRIDE CAP_MAC_OVERRIDE
+
+[Install]
+WantedBy=multi-user.target
+