tizen-system-env.service : add "RemainAfterExit=yes" 67/137067/3
authorINSUN PYO <insun.pyo@samsung.com>
Tue, 4 Jul 2017 08:55:26 +0000 (17:55 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Mon, 21 Aug 2017 07:30:38 +0000 (07:30 +0000)
The pkg-db-recovery.service, sdbd.service and ad.service have "Requires=tizen-system-env.service"
So, each time these services are executed, tizen-system-env.service is also executed.

"RemainAfterExit=yes" makse "active (exited)" state even if the serivce is completed.

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: I2b1db458deb5bc92fde12912c00303e3ebd65b8a

units/tizen-system-env.service

index fac769e85c140ea929c70487848fb7ea4ac246ee..29a3cc2639ef8d6cd247845d909a6e53f7124ced 100644 (file)
@@ -5,6 +5,7 @@ Before=basic.target
 
 [Service]
 Type=oneshot
+RemainAfterExit=yes
 SmackProcessLabel=System
 ExecStart=/usr/bin/env -i sh -c 'source /etc/profile; env | /bin/egrep -v "^(HOME|PWD|SHLVL|_|USER|MAIL|LOGNAME|XDG_RUNTIME_DIR)=" > /run/tizen-system-env'
 ExecStart=/usr/bin/env -i sh -c 'source /etc/profile; env | /bin/egrep -e "XDG_RUNTIME_DIR=" > /run/xdg-root-env'