tizen: Do not use shutdown.target for shutdown
authorKarol Lewandowski <k.lewandowsk@samsung.com>
Mon, 10 May 2021 13:58:27 +0000 (15:58 +0200)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Thu, 25 Jan 2024 14:28:44 +0000 (15:28 +0100)
shutdown.target is special unit to which systemd automatically adds
Conflicts= with for every unit.

By removing the relation to this target in shutdown units we practically
change the shutdown to use only explicitly configured units.

Change-Id: I93a43cdb3875250920e3e49817ffcd6f7f7725b6

units/systemd-halt.service.in
units/systemd-poweroff.service
units/systemd-reboot.service

index d1fab67..b350319 100644 (file)
@@ -11,8 +11,8 @@
 Description=Halt
 Documentation=man:systemd-halt.service(8)
 DefaultDependencies=no
-Requires=shutdown.target umount.target final.target
-After=shutdown.target umount.target final.target
+Requires=final.target
+After=final.target
 
 [Service]
 Type=oneshot
index 997669c..111a433 100644 (file)
@@ -11,8 +11,8 @@
 Description=Power-Off
 Documentation=man:systemd-halt.service(8)
 DefaultDependencies=no
-Requires=shutdown.target umount.target final.target
-After=shutdown.target umount.target final.target
+Requires=final.target
+After=final.target
 SuccessAction=poweroff-force
 
 [Service]
index 37a4de2..f4c02c1 100644 (file)
@@ -11,8 +11,8 @@
 Description=Reboot
 Documentation=man:systemd-halt.service(8)
 DefaultDependencies=no
-Requires=shutdown.target umount.target final.target
-After=shutdown.target umount.target final.target
+Requires=final.target
+After=final.target
 SuccessAction=reboot-force
 
 [Service]