From 2d9662f69641aee9159152cc10000c40509c4f0f Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Sun, 2 May 2010 18:20:07 +0200 Subject: [PATCH] Initial import from http://0pointer.de/public/etc-systemd-system.tar.gz --- basic.target | 4 ++++ ctrl-alt-del.target | 1 + default.target | 1 + getty.target | 2 ++ getty.target.wants/getty@tty1.service | 1 + getty.target.wants/getty@tty2.service | 1 + getty.target.wants/getty@tty3.service | 1 + getty.target.wants/getty@tty4.service | 1 + getty.target.wants/getty@tty5.service | 1 + getty.target.wants/getty@tty6.service | 1 + getty@.service | 11 +++++++++++ graphical.target | 5 +++++ graphical.target.wants/prefdm.service | 1 + halt.service | 12 ++++++++++++ halt.target | 3 +++ kbrequest.target | 1 + killall.service | 8 ++++++++ local-fs.target | 3 +++ local.service | 1 + multi-user.target | 5 +++++ multi-user.target.wants/getty.target | 1 + multi-user.target.wants/systemd-initctl.socket | 1 + multi-user.target.wants/systemd-logger.socket | 1 + network.target | 2 ++ nss-lookup.target | 4 ++++ poweroff.service | 11 +++++++++++ poweroff.target | 4 ++++ prefdm.service | 8 ++++++++ rc-local.service | 12 ++++++++++++ reboot.service | 11 +++++++++++ reboot.target | 4 ++++ remote-fs.target | 4 ++++ rescue.target | 5 +++++ rtc-set.target | 2 ++ runlevel0.target | 1 + runlevel1.target | 1 + runlevel2.target | 4 ++++ runlevel3.target | 1 + runlevel4.target | 4 ++++ runlevel5.target | 1 + runlevel6.target | 1 + shutdown.target | 3 +++ sigpwr.target | 2 ++ sysinit.service | 9 +++++++++ syslog.target | 4 ++++ 45 files changed, 165 insertions(+) create mode 100644 basic.target create mode 120000 ctrl-alt-del.target create mode 120000 default.target create mode 100644 getty.target create mode 120000 getty.target.wants/getty@tty1.service create mode 120000 getty.target.wants/getty@tty2.service create mode 120000 getty.target.wants/getty@tty3.service create mode 120000 getty.target.wants/getty@tty4.service create mode 120000 getty.target.wants/getty@tty5.service create mode 120000 getty.target.wants/getty@tty6.service create mode 100644 getty@.service create mode 100644 graphical.target create mode 120000 graphical.target.wants/prefdm.service create mode 100644 halt.service create mode 100644 halt.target create mode 120000 kbrequest.target create mode 100644 killall.service create mode 100644 local-fs.target create mode 120000 local.service create mode 100644 multi-user.target create mode 120000 multi-user.target.wants/getty.target create mode 120000 multi-user.target.wants/systemd-initctl.socket create mode 120000 multi-user.target.wants/systemd-logger.socket create mode 100644 network.target create mode 100644 nss-lookup.target create mode 100644 poweroff.service create mode 100644 poweroff.target create mode 100644 prefdm.service create mode 100644 rc-local.service create mode 100644 reboot.service create mode 100644 reboot.target create mode 100644 remote-fs.target create mode 100644 rescue.target create mode 100644 rtc-set.target create mode 120000 runlevel0.target create mode 120000 runlevel1.target create mode 100644 runlevel2.target create mode 120000 runlevel3.target create mode 100644 runlevel4.target create mode 120000 runlevel5.target create mode 120000 runlevel6.target create mode 100644 shutdown.target create mode 100644 sigpwr.target create mode 100644 sysinit.service create mode 100644 syslog.target diff --git a/basic.target b/basic.target new file mode 100644 index 0000000..b2c8e8a --- /dev/null +++ b/basic.target @@ -0,0 +1,4 @@ +[Unit] +Description=Basic System +Requires=local-fs.target sysinit.service rc-local.service +After=local-fs.target sysinit.service diff --git a/ctrl-alt-del.target b/ctrl-alt-del.target new file mode 120000 index 0000000..f2fde43 --- /dev/null +++ b/ctrl-alt-del.target @@ -0,0 +1 @@ +reboot.target \ No newline at end of file diff --git a/default.target b/default.target new file mode 120000 index 0000000..19c4c93 --- /dev/null +++ b/default.target @@ -0,0 +1 @@ +multi-user.target \ No newline at end of file diff --git a/getty.target b/getty.target new file mode 100644 index 0000000..6d9da7c --- /dev/null +++ b/getty.target @@ -0,0 +1,2 @@ +[Unit] +Description=Login Prompts diff --git a/getty.target.wants/getty@tty1.service b/getty.target.wants/getty@tty1.service new file mode 120000 index 0000000..c466b29 --- /dev/null +++ b/getty.target.wants/getty@tty1.service @@ -0,0 +1 @@ +../getty@.service \ No newline at end of file diff --git a/getty.target.wants/getty@tty2.service b/getty.target.wants/getty@tty2.service new file mode 120000 index 0000000..c466b29 --- /dev/null +++ b/getty.target.wants/getty@tty2.service @@ -0,0 +1 @@ +../getty@.service \ No newline at end of file diff --git a/getty.target.wants/getty@tty3.service b/getty.target.wants/getty@tty3.service new file mode 120000 index 0000000..c466b29 --- /dev/null +++ b/getty.target.wants/getty@tty3.service @@ -0,0 +1 @@ +../getty@.service \ No newline at end of file diff --git a/getty.target.wants/getty@tty4.service b/getty.target.wants/getty@tty4.service new file mode 120000 index 0000000..c466b29 --- /dev/null +++ b/getty.target.wants/getty@tty4.service @@ -0,0 +1 @@ +../getty@.service \ No newline at end of file diff --git a/getty.target.wants/getty@tty5.service b/getty.target.wants/getty@tty5.service new file mode 120000 index 0000000..c466b29 --- /dev/null +++ b/getty.target.wants/getty@tty5.service @@ -0,0 +1 @@ +../getty@.service \ No newline at end of file diff --git a/getty.target.wants/getty@tty6.service b/getty.target.wants/getty@tty6.service new file mode 120000 index 0000000..c466b29 --- /dev/null +++ b/getty.target.wants/getty@tty6.service @@ -0,0 +1 @@ +../getty@.service \ No newline at end of file diff --git a/getty@.service b/getty@.service new file mode 100644 index 0000000..ceb04c0 --- /dev/null +++ b/getty@.service @@ -0,0 +1,11 @@ +[Unit] +Description=Getty on %I +Before=getty.target +After=basic.target +Conflicts=shutdown.target + +[Service] +ExecStart=/sbin/mingetty %I +Type=simple +Restart=restart-always +RestartSec=0 diff --git a/graphical.target b/graphical.target new file mode 100644 index 0000000..a4c609e --- /dev/null +++ b/graphical.target @@ -0,0 +1,5 @@ +[Unit] +Description=Graphical Interface +Requires=multi-user.target basic.target +After=multi-user.target basic.target +Names=runlevel5.target diff --git a/graphical.target.wants/prefdm.service b/graphical.target.wants/prefdm.service new file mode 120000 index 0000000..dd5eb66 --- /dev/null +++ b/graphical.target.wants/prefdm.service @@ -0,0 +1 @@ +../prefdm.service \ No newline at end of file diff --git a/halt.service b/halt.service new file mode 100644 index 0000000..0b350da --- /dev/null +++ b/halt.service @@ -0,0 +1,12 @@ +[Unit] +Description=Halt +Requires=shutdown.target killall.service +After=shutdown.target killall.service +Before=halt.target + +[Service] +Type=finish +ValidNoProcess=yes +Environment=INIT_HALT=HALT +Environment=RUNLEVEL=0 +ExecStart=/etc/init.d/halt start diff --git a/halt.target b/halt.target new file mode 100644 index 0000000..03b8117 --- /dev/null +++ b/halt.target @@ -0,0 +1,3 @@ +[Unit] +Description=Halt +Requires=halt.service diff --git a/kbrequest.target b/kbrequest.target new file mode 120000 index 0000000..eedb17f --- /dev/null +++ b/kbrequest.target @@ -0,0 +1 @@ +rescue.target \ No newline at end of file diff --git a/killall.service b/killall.service new file mode 100644 index 0000000..b471bc1 --- /dev/null +++ b/killall.service @@ -0,0 +1,8 @@ +[Unit] +Description=Kill All Processes +After=shutdown.target + +[Service] +Type=finish +ValidNoProcess=yes +ExecStart=/etc/init.d/killall start diff --git a/local-fs.target b/local-fs.target new file mode 100644 index 0000000..60cce4d --- /dev/null +++ b/local-fs.target @@ -0,0 +1,3 @@ +[Unit] +Description=Local File Systems +After=sysinit.service diff --git a/local.service b/local.service new file mode 120000 index 0000000..ad0e40f --- /dev/null +++ b/local.service @@ -0,0 +1 @@ +rc-local.service \ No newline at end of file diff --git a/multi-user.target b/multi-user.target new file mode 100644 index 0000000..5a8a125 --- /dev/null +++ b/multi-user.target @@ -0,0 +1,5 @@ +[Unit] +Description=Multi-User Target +Requires=basic.target +After=basic.target +Names=runlevel3.target diff --git a/multi-user.target.wants/getty.target b/multi-user.target.wants/getty.target new file mode 120000 index 0000000..bdba1fe --- /dev/null +++ b/multi-user.target.wants/getty.target @@ -0,0 +1 @@ +../getty.target \ No newline at end of file diff --git a/multi-user.target.wants/systemd-initctl.socket b/multi-user.target.wants/systemd-initctl.socket new file mode 120000 index 0000000..054d224 --- /dev/null +++ b/multi-user.target.wants/systemd-initctl.socket @@ -0,0 +1 @@ +/usr/local/share/systemd/system/systemd-initctl.socket \ No newline at end of file diff --git a/multi-user.target.wants/systemd-logger.socket b/multi-user.target.wants/systemd-logger.socket new file mode 120000 index 0000000..4deaba8 --- /dev/null +++ b/multi-user.target.wants/systemd-logger.socket @@ -0,0 +1 @@ +/usr/local/share/systemd/system/systemd-logger.socket \ No newline at end of file diff --git a/network.target b/network.target new file mode 100644 index 0000000..c84fb99 --- /dev/null +++ b/network.target @@ -0,0 +1,2 @@ +[Unit] +Description=Network diff --git a/nss-lookup.target b/nss-lookup.target new file mode 100644 index 0000000..c889ac3 --- /dev/null +++ b/nss-lookup.target @@ -0,0 +1,4 @@ +[Unit] +Description=Name Lookups +Wants=network.target +After=network.target diff --git a/poweroff.service b/poweroff.service new file mode 100644 index 0000000..c394561 --- /dev/null +++ b/poweroff.service @@ -0,0 +1,11 @@ +[Unit] +Description=Poweroff +Requires=shutdown.target killall.service +After=shutdown.target killall.service +Before=poweroff.target + +[Service] +Type=finish +ValidNoProcess=yes +Environment=RUNLEVEL=0 +ExecStart=/etc/init.d/halt start diff --git a/poweroff.target b/poweroff.target new file mode 100644 index 0000000..c1fd9f7 --- /dev/null +++ b/poweroff.target @@ -0,0 +1,4 @@ +[Unit] +Description=Power Off +Names=runlevel0.target +Requires=poweroff.service diff --git a/prefdm.service b/prefdm.service new file mode 100644 index 0000000..c42e6f4 --- /dev/null +++ b/prefdm.service @@ -0,0 +1,8 @@ +[Unit] +Description=Display Manager +Before=graphical.target +After=basic.target syslog.target messagebus.service haldaemon.service + +[Service] +ExecStart=/etc/X11/prefdm -nodaemon +Type=simple diff --git a/rc-local.service b/rc-local.service new file mode 100644 index 0000000..93e182c --- /dev/null +++ b/rc-local.service @@ -0,0 +1,12 @@ +[Unit] +Description=/etc/rc.local Compatibility +Requires=basic.target +Names=local.service + +[Service] +ExecStart=/etc/rc.local start +Type=finish +TimeoutSec=0 +StandardInput=tty +ValidNoProcess=yes +SysVStartPriority=99 diff --git a/reboot.service b/reboot.service new file mode 100644 index 0000000..563d5b6 --- /dev/null +++ b/reboot.service @@ -0,0 +1,11 @@ +[Unit] +Description=Reboot +Requires=shutdown.target killall.service +After=shutdown.target killall.service +Before=reboot.target + +[Service] +Type=finish +ValidNoProcess=yes +Environment=RUNLEVEL=6 +ExecStart=/etc/init.d/reboot start diff --git a/reboot.target b/reboot.target new file mode 100644 index 0000000..3afc730 --- /dev/null +++ b/reboot.target @@ -0,0 +1,4 @@ +[Unit] +Description=Reboot +Names=runlevel6.target +Requires=reboot.service diff --git a/remote-fs.target b/remote-fs.target new file mode 100644 index 0000000..58234a3 --- /dev/null +++ b/remote-fs.target @@ -0,0 +1,4 @@ +[Unit] +Description=Remote File Systems +Requires=network.target +After=network.target diff --git a/rescue.target b/rescue.target new file mode 100644 index 0000000..e0b02ca --- /dev/null +++ b/rescue.target @@ -0,0 +1,5 @@ +[Unit] +Description=Rescue Target +Requires=basic.target +After=basic.target +Names=runlevel1.target diff --git a/rtc-set.target b/rtc-set.target new file mode 100644 index 0000000..58bcd82 --- /dev/null +++ b/rtc-set.target @@ -0,0 +1,2 @@ +[Unit] +Description=RTC Set diff --git a/runlevel0.target b/runlevel0.target new file mode 120000 index 0000000..fe6c668 --- /dev/null +++ b/runlevel0.target @@ -0,0 +1 @@ +poweroff.target \ No newline at end of file diff --git a/runlevel1.target b/runlevel1.target new file mode 120000 index 0000000..eedb17f --- /dev/null +++ b/runlevel1.target @@ -0,0 +1 @@ +rescue.target \ No newline at end of file diff --git a/runlevel2.target b/runlevel2.target new file mode 100644 index 0000000..ba825c3 --- /dev/null +++ b/runlevel2.target @@ -0,0 +1,4 @@ +[Unit] +Description=Compatibility for Runlevel 2 +Requires=multi-user.target +After=multi-user.target diff --git a/runlevel3.target b/runlevel3.target new file mode 120000 index 0000000..19c4c93 --- /dev/null +++ b/runlevel3.target @@ -0,0 +1 @@ +multi-user.target \ No newline at end of file diff --git a/runlevel4.target b/runlevel4.target new file mode 100644 index 0000000..1200b86 --- /dev/null +++ b/runlevel4.target @@ -0,0 +1,4 @@ +[Unit] +Description=Compatibility for Runlevel 4 +Requires=multi-user.target +After=multi-user.target diff --git a/runlevel5.target b/runlevel5.target new file mode 120000 index 0000000..a0aae86 --- /dev/null +++ b/runlevel5.target @@ -0,0 +1 @@ +graphical.target \ No newline at end of file diff --git a/runlevel6.target b/runlevel6.target new file mode 120000 index 0000000..f2fde43 --- /dev/null +++ b/runlevel6.target @@ -0,0 +1 @@ +reboot.target \ No newline at end of file diff --git a/shutdown.target b/shutdown.target new file mode 100644 index 0000000..e725206 --- /dev/null +++ b/shutdown.target @@ -0,0 +1,3 @@ +[Unit] +Names=shutdown.target +Description=Shutdown diff --git a/sigpwr.target b/sigpwr.target new file mode 100644 index 0000000..9903184 --- /dev/null +++ b/sigpwr.target @@ -0,0 +1,2 @@ +[Unit] +Description=Power Failure diff --git a/sysinit.service b/sysinit.service new file mode 100644 index 0000000..d21cd17 --- /dev/null +++ b/sysinit.service @@ -0,0 +1,9 @@ +[Unit] +Description=System Initialization + +[Service] +ExecStart=/etc/rc.d/rc.sysinit +Type=forking +TimeoutSec=0 +StandardInput=tty +ValidNoProcess=yes diff --git a/syslog.target b/syslog.target new file mode 100644 index 0000000..11d4fda --- /dev/null +++ b/syslog.target @@ -0,0 +1,4 @@ +[Unit] +Description=System Logger +Requires=rsyslog.service +After=rsyslog.service -- 2.39.5