From: Tollef Fog Heen Date: Sun, 2 May 2010 16:20:07 +0000 (+0200) Subject: Initial import from http://0pointer.de/public/etc-systemd-system.tar.gz X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d9662f69641aee9159152cc10000c40509c4f0f;p=systemd-rc Initial import from http://0pointer.de/public/etc-systemd-system.tar.gz --- 2d9662f69641aee9159152cc10000c40509c4f0f 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