aboutsummaryrefslogtreecommitdiffstats
path: root/conf/system/afm-user-setup@.service.in
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2019-05-03 18:43:21 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2019-05-14 10:58:01 +0200
commitcc937529cdf8fad47b9b988fe205406f75d61acd (patch)
tree40e47ef34ab2269aa3602e5d4c3957ec1f617846 /conf/system/afm-user-setup@.service.in
parent2db5d235fe4819c622d22282f5945ef4f13f6372 (diff)
Refactor of system and user setuphalibut_7.99.1halibut/7.99.17.99.1
Since a long time, the creation of the user and system run environment was made by a sub-optimal, hardly maintainable and false-error generating. This change puts the user and system setup in separate shell scripts. This makes them more easy to maintain, update or tune. This facility will useful for further evolution. Bug-AGL: SPEC-1016 Change-Id: Iede81a659eacf4e5c21c561a33d300408e1bd058 Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'conf/system/afm-user-setup@.service.in')
-rw-r--r--conf/system/afm-user-setup@.service.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/conf/system/afm-user-setup@.service.in b/conf/system/afm-user-setup@.service.in
new file mode 100644
index 0000000..86c0422
--- /dev/null
+++ b/conf/system/afm-user-setup@.service.in
@@ -0,0 +1,7 @@
+[Unit]
+Description=Initiate afm-user-setup %i
+After=user@%i.service
+[Service]
+Type=oneshot
+StartLimitInterval=0
+ExecStart=-@afm_libexecdir@/afm-user-setup.sh %i