Fix restart option to on-failure 56/246156/2
authorYoungjae Cho <y0.cho@samsung.com>
Mon, 26 Oct 2020 06:10:10 +0000 (15:10 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Mon, 26 Oct 2020 06:22:32 +0000 (06:22 +0000)
This prevents restarting deviced when the deviced is returning main()
through poweroff sequence.

Change-Id: Icbb4a8c306721a1613c04d41060fbbd323c5e62b
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
systemd/deviced.service

index 0f07bff..817c32d 100644 (file)
@@ -11,7 +11,7 @@ Type=notify
 SmackProcessLabel=System::Privileged
 Environment=XDG_RUNTIME_DIR=/run
 ExecStart=/usr/bin/deviced
-Restart=always
+Restart=on-failure
 RestartSec=0
 KillSignal=SIGUSR1