summaryrefslogtreecommitdiffstats
path: root/meta-agl/recipes-devtools/run-agl-postinsts/run-agl-postinsts/run-agl-postinsts.service
diff options
context:
space:
mode:
authorRonan Le Martret <ronan.lemartret@iot.bzh>2017-02-15 16:34:51 +0100
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2017-02-16 18:56:05 +0000
commit67f1d7f631f20dfb4be3765ec32dfcd237d649c5 (patch)
treecd6c504ddcc688fffca20bf4eda9785c82223a8d /meta-agl/recipes-devtools/run-agl-postinsts/run-agl-postinsts/run-agl-postinsts.service
parentcc538eca28979e1eb966f67a6bca9d05456386a1 (diff)
Added first boot service for AGL
* Allow script execution at the end of the boot. * Yocto first boot service is install at for "sysinit.target" level. AGL need to have a custom service, exec when target service system, (SYSTEMD_SERVICE_AFTER), is up. * All script inside directory "/etc/agl-postinsts" will be exec at the first boot. * After the first boot the service "run-agl-postinsts.service" is disable. Change-Id: Ib12b7e11b451b4a41c4a31f5cda3686679fe9c08 Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
Diffstat (limited to 'meta-agl/recipes-devtools/run-agl-postinsts/run-agl-postinsts/run-agl-postinsts.service')
-rw-r--r--meta-agl/recipes-devtools/run-agl-postinsts/run-agl-postinsts/run-agl-postinsts.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/meta-agl/recipes-devtools/run-agl-postinsts/run-agl-postinsts/run-agl-postinsts.service b/meta-agl/recipes-devtools/run-agl-postinsts/run-agl-postinsts/run-agl-postinsts.service
new file mode 100644
index 000000000..d1b506308
--- /dev/null
+++ b/meta-agl/recipes-devtools/run-agl-postinsts/run-agl-postinsts/run-agl-postinsts.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Run pending agl postinsts
+DefaultDependencies=no
+After=#SYSTEMD_SERVICE_AFTER#
+ConditionPathExistsGlob=#SYSCONFDIR#/agl-postinsts
+
+[Service]
+Type=oneshot
+ExecStart=#SBINDIR#/run-agl-postinsts
+ExecStartPost=#BASE_BINDIR#/systemctl disable run-agl-postinsts.service
+RemainAfterExit=No
+TimeoutSec=0
+
+[Install]
+WantedBy=multi-user.target