Makes sure we umount the file system before shutting down.
[Unit]
Description=Halt
DefaultDependencies=no
-Requires=shutdown.target killall.service
-After=shutdown.target killall.service
+Requires=shutdown.target umount.target killall.service
+After=shutdown.target umount.target killall.service
[Service]
Type=oneshot
Environment=INIT_HALT=HALT
Environment=RUNLEVEL=0
ExecStart=/etc/init.d/halt stop
+StandardOutput=tty
[Unit]
Description=Kill All Processes
DefaultDependencies=no
+After=shutdown.target
+RefuseManualStart=yes
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/etc/init.d/sendsigs stop
+StandardOutput=tty
[Unit]
Description=Power-Off
DefaultDependencies=no
-Requires=shutdown.target killall.service
-After=shutdown.target killall.service
+Requires=shutdown.target umount.target killall.service
+After=shutdown.target umount.target killall.service
[Service]
Type=oneshot
RemainAfterExit=yes
Environment=RUNLEVEL=0
ExecStart=/etc/init.d/halt stop
+StandardOutput=tty
[Unit]
Description=Reboot
DefaultDependencies=no
-Requires=shutdown.target killall.service
-After=shutdown.target killall.service
+Requires=shutdown.target umount.target killall.service
+After=shutdown.target umount.target killall.service
[Service]
Type=oneshot
RemainAfterExit=yes
Environment=RUNLEVEL=6
ExecStart=/etc/init.d/reboot stop
+StandardOutput=tty