summaryrefslogtreecommitdiffstats
path: root/conf.d/usr
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-10-12 13:57:56 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-10-12 13:57:56 +0200
commita2effe5ecec057748e30050bd2d3bad6501a2aef (patch)
tree17ad53b96e626c2e65c8ce0aa01d9c4561dc27b9 /conf.d/usr
parentc1104e1be920ea11a42a873bad24e1f8f29990a6 (diff)
Default service to be started by current user.
As well as use the same scheme that for etc/ Change-Id: I2e133f8a394546b8d51668e193d408065cdf5e81 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'conf.d/usr')
-rw-r--r--conf.d/usr/lib/systemd/user/xds-server.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/conf.d/usr/lib/systemd/user/xds-server.service b/conf.d/usr/lib/systemd/user/xds-server.service
new file mode 100644
index 0000000..600a343
--- /dev/null
+++ b/conf.d/usr/lib/systemd/user/xds-server.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=XDS Server
+
+[Service]
+Type=forking
+EnvironmentFile=-/etc/default/xds-server
+ExecStart=/opt/AGL/xds/server/xds-server-start.sh
+ExecStop=/opt/AGL/xds/server/xds-server-stop.sh
+
+[Install]
+WantedBy=multi-user.target