diff options
Diffstat (limited to 'units/arch')
-rw-r--r-- | units/arch/halt.service | 18 | ||||
-rw-r--r-- | units/arch/poweroff.service | 18 | ||||
-rw-r--r-- | units/arch/rc-local.service | 20 | ||||
-rw-r--r-- | units/arch/reboot.service | 18 | ||||
-rw-r--r-- | units/arch/sysinit.service | 19 |
5 files changed, 93 insertions, 0 deletions
diff --git a/units/arch/halt.service b/units/arch/halt.service new file mode 100644 index 0000000000..445ca48d44 --- /dev/null +++ b/units/arch/halt.service @@ -0,0 +1,18 @@ +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +[Unit] +Description=Halt +Requires=shutdown.target +After=shutdown.target +Conflicts=dev-hugepages.automount dev-mqueue.automount proc-sys-fs-binfmt_misc.automount sys-kernel-debug.automount sys-kernel-security.automount + +[Service] +Type=finish +ValidNoProcess=yes +Environment=RUNLEVEL=0 +ExecStart=/etc/rc.shutdown diff --git a/units/arch/poweroff.service b/units/arch/poweroff.service new file mode 100644 index 0000000000..3ca8f30e94 --- /dev/null +++ b/units/arch/poweroff.service @@ -0,0 +1,18 @@ +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +[Unit] +Description=Power-Off +Requires=shutdown.target +After=shutdown.target +Conflicts=dev-hugepages.automount dev-mqueue.automount proc-sys-fs-binfmt_misc.automount sys-kernel-debug.automount sys-kernel-security.automount + +[Service] +Type=finish +ValidNoProcess=yes +Environment=RUNLEVEL=0 +ExecStart=/etc/rc.shutdown diff --git a/units/arch/rc-local.service b/units/arch/rc-local.service new file mode 100644 index 0000000000..45b6e16483 --- /dev/null +++ b/units/arch/rc-local.service @@ -0,0 +1,20 @@ +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +[Unit] +Description=/etc/rc.local Compatibility +Requires=basic.target +After=basic.target +Conflicts=shutdown.target +Before=getty@tty1.service + +[Service] +ExecStart=/etc/rc.local +ExectStop=/etc/rc.local.shutdown +TimeoutSec=0 +StandardInput=tty +ValidNoProcess=yes diff --git a/units/arch/reboot.service b/units/arch/reboot.service new file mode 100644 index 0000000000..4aa7dc2e81 --- /dev/null +++ b/units/arch/reboot.service @@ -0,0 +1,18 @@ +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +[Unit] +Description=Reboot +Requires=shutdown.target +After=shutdown.target +Conflicts=dev-hugepages.automount dev-mqueue.automount proc-sys-fs-binfmt_misc.automount sys-kernel-debug.automount sys-kernel-security.automount + +[Service] +Type=finish +ValidNoProcess=yes +Environment=RUNLEVEL=6 +ExecStart=/etc/rc.shutdown diff --git a/units/arch/sysinit.service b/units/arch/sysinit.service new file mode 100644 index 0000000000..8be50d784b --- /dev/null +++ b/units/arch/sysinit.service @@ -0,0 +1,19 @@ +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +[Unit] +Description=System Initialization +Before=local-fs.target remote-fs.target swap.target sockets.target +Conflicts=shutdown.target +Before=shutdown.target + +[Service] +ExecStart=/etc/rc.sysinit +Type=forking +TimeoutSec=0 +StandardInput=tty +ValidNoProcess=yes |