From: Tollef Fog Heen Date: Sun, 16 May 2010 08:28:54 +0000 (+0200) Subject: Add systemd-services package X-Git-Tag: 0.git+20100605+dfd8ee-1~16 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87041ed40884aec84f2f4aeb53fb6b52ac0143f2;p=systemd Add systemd-services package --- diff --git a/debian/control b/debian/control index 0ba54e25..954cac5f 100644 --- a/debian/control +++ b/debian/control @@ -9,7 +9,7 @@ Package: systemd Architecture: linux-any Section: admin Priority: extra -Depends: ${shlibs:Depends}, ${misc:Depends} +Depends: ${shlibs:Depends}, ${misc:Depends}, systemd-services Description: system and session manager systemd is a replacement for sysvinit. It is dependency-based and able to read the LSB init script headers in addition to parsing rcN.d @@ -18,3 +18,19 @@ Description: system and session manager It also provides process supervision using cgroups and the ability to not only depend on other init script being started, but also availability of a given mount point or dbus service. + +Package: systemd-services +Architecture: all +Section: admin +Priority: extra +Recommends: systemd +Description: system and session manager - service scripts + systemd is a replacement for sysvinit. It is dependency-based and + able to read the LSB init script headers in addition to parsing rcN.d + links as hints. + . + It also provides process supervision using cgroups and the ability to + not only depend on other init script being started, but also + availability of a given mount point or dbus service. + . + This package contains the service scripts that systemd needs. diff --git a/debian/system/basic.target b/debian/system/basic.target new file mode 100644 index 00000000..b2c8e8a9 --- /dev/null +++ b/debian/system/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/debian/system/checkfs.service b/debian/system/checkfs.service new file mode 100644 index 00000000..b10aa305 --- /dev/null +++ b/debian/system/checkfs.service @@ -0,0 +1,9 @@ +[Unit] +Description=Check non-root file systems + +[Service] +ExecStart=/etc/init.d/checkfs.sh start +Type=finish +TimeoutSec=0 +StandardInput=tty +ValidNoProcess=yes diff --git a/debian/system/checkroot.service b/debian/system/checkroot.service new file mode 100644 index 00000000..db6b4b29 --- /dev/null +++ b/debian/system/checkroot.service @@ -0,0 +1,9 @@ +[Unit] +Description=Check root file system + +[Service] +ExecStart=/etc/init.d/checkroot.sh start +Type=finish +TimeoutSec=0 +StandardInput=tty +ValidNoProcess=yes diff --git a/debian/system/ctrl-alt-del.target b/debian/system/ctrl-alt-del.target new file mode 120000 index 00000000..f2fde431 --- /dev/null +++ b/debian/system/ctrl-alt-del.target @@ -0,0 +1 @@ +reboot.target \ No newline at end of file diff --git a/debian/system/default.target b/debian/system/default.target new file mode 120000 index 00000000..19c4c93c --- /dev/null +++ b/debian/system/default.target @@ -0,0 +1 @@ +multi-user.target \ No newline at end of file diff --git a/debian/system/getty.target b/debian/system/getty.target new file mode 100644 index 00000000..6d9da7c6 --- /dev/null +++ b/debian/system/getty.target @@ -0,0 +1,2 @@ +[Unit] +Description=Login Prompts diff --git a/debian/system/getty.target.wants/getty@tty1.service b/debian/system/getty.target.wants/getty@tty1.service new file mode 120000 index 00000000..c466b299 --- /dev/null +++ b/debian/system/getty.target.wants/getty@tty1.service @@ -0,0 +1 @@ +../getty@.service \ No newline at end of file diff --git a/debian/system/getty.target.wants/getty@tty2.service b/debian/system/getty.target.wants/getty@tty2.service new file mode 120000 index 00000000..c466b299 --- /dev/null +++ b/debian/system/getty.target.wants/getty@tty2.service @@ -0,0 +1 @@ +../getty@.service \ No newline at end of file diff --git a/debian/system/getty.target.wants/getty@tty3.service b/debian/system/getty.target.wants/getty@tty3.service new file mode 120000 index 00000000..c466b299 --- /dev/null +++ b/debian/system/getty.target.wants/getty@tty3.service @@ -0,0 +1 @@ +../getty@.service \ No newline at end of file diff --git a/debian/system/getty.target.wants/getty@tty4.service b/debian/system/getty.target.wants/getty@tty4.service new file mode 120000 index 00000000..c466b299 --- /dev/null +++ b/debian/system/getty.target.wants/getty@tty4.service @@ -0,0 +1 @@ +../getty@.service \ No newline at end of file diff --git a/debian/system/getty.target.wants/getty@tty5.service b/debian/system/getty.target.wants/getty@tty5.service new file mode 120000 index 00000000..c466b299 --- /dev/null +++ b/debian/system/getty.target.wants/getty@tty5.service @@ -0,0 +1 @@ +../getty@.service \ No newline at end of file diff --git a/debian/system/getty.target.wants/getty@tty6.service b/debian/system/getty.target.wants/getty@tty6.service new file mode 120000 index 00000000..c466b299 --- /dev/null +++ b/debian/system/getty.target.wants/getty@tty6.service @@ -0,0 +1 @@ +../getty@.service \ No newline at end of file diff --git a/debian/system/getty@.service b/debian/system/getty@.service new file mode 100644 index 00000000..4cc9d2c8 --- /dev/null +++ b/debian/system/getty@.service @@ -0,0 +1,11 @@ +[Unit] +Description=Getty on %I +Before=getty.target +After=basic.target +Conflicts=shutdown.target + +[Service] +ExecStart=/sbin/getty 38400 %I +Type=simple +Restart=restart-always +RestartSec=0 diff --git a/debian/system/halt.service b/debian/system/halt.service new file mode 100644 index 00000000..d2ac6d01 --- /dev/null +++ b/debian/system/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 stop diff --git a/debian/system/halt.target b/debian/system/halt.target new file mode 100644 index 00000000..03b81175 --- /dev/null +++ b/debian/system/halt.target @@ -0,0 +1,3 @@ +[Unit] +Description=Halt +Requires=halt.service diff --git a/debian/system/kbrequest.target b/debian/system/kbrequest.target new file mode 120000 index 00000000..eedb17fb --- /dev/null +++ b/debian/system/kbrequest.target @@ -0,0 +1 @@ +rescue.target \ No newline at end of file diff --git a/debian/system/killall.service b/debian/system/killall.service new file mode 100644 index 00000000..e5c82895 --- /dev/null +++ b/debian/system/killall.service @@ -0,0 +1,8 @@ +[Unit] +Description=Kill All Processes +After=shutdown.target + +[Service] +Type=finish +ValidNoProcess=yes +ExecStart=/etc/init.d/sendsigs stop diff --git a/debian/system/local-fs.target b/debian/system/local-fs.target new file mode 100644 index 00000000..60cce4d7 --- /dev/null +++ b/debian/system/local-fs.target @@ -0,0 +1,3 @@ +[Unit] +Description=Local File Systems +After=sysinit.service diff --git a/debian/system/local.service b/debian/system/local.service new file mode 120000 index 00000000..ad0e40fc --- /dev/null +++ b/debian/system/local.service @@ -0,0 +1 @@ +rc-local.service \ No newline at end of file diff --git a/debian/system/multi-user.target b/debian/system/multi-user.target new file mode 100644 index 00000000..e246687c --- /dev/null +++ b/debian/system/multi-user.target @@ -0,0 +1,5 @@ +[Unit] +Description=Multi-User Target +Requires=basic.target +After=basic.target +Names=runlevel2.target diff --git a/debian/system/multi-user.target.wants/getty.target b/debian/system/multi-user.target.wants/getty.target new file mode 120000 index 00000000..bdba1fe4 --- /dev/null +++ b/debian/system/multi-user.target.wants/getty.target @@ -0,0 +1 @@ +../getty.target \ No newline at end of file diff --git a/debian/system/multi-user.target.wants/systemd-initctl.socket b/debian/system/multi-user.target.wants/systemd-initctl.socket new file mode 120000 index 00000000..9a828b02 --- /dev/null +++ b/debian/system/multi-user.target.wants/systemd-initctl.socket @@ -0,0 +1 @@ +/lib/systemd/system/systemd-initctl.socket \ No newline at end of file diff --git a/debian/system/multi-user.target.wants/systemd-logger.socket b/debian/system/multi-user.target.wants/systemd-logger.socket new file mode 120000 index 00000000..253aa938 --- /dev/null +++ b/debian/system/multi-user.target.wants/systemd-logger.socket @@ -0,0 +1 @@ +/lib/systemd/system/systemd-logger.socket \ No newline at end of file diff --git a/debian/system/network.target b/debian/system/network.target new file mode 100644 index 00000000..c84fb990 --- /dev/null +++ b/debian/system/network.target @@ -0,0 +1,2 @@ +[Unit] +Description=Network diff --git a/debian/system/nss-lookup.target b/debian/system/nss-lookup.target new file mode 100644 index 00000000..c889ac31 --- /dev/null +++ b/debian/system/nss-lookup.target @@ -0,0 +1,4 @@ +[Unit] +Description=Name Lookups +Wants=network.target +After=network.target diff --git a/debian/system/poweroff.service b/debian/system/poweroff.service new file mode 100644 index 00000000..459ea598 --- /dev/null +++ b/debian/system/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 stop diff --git a/debian/system/poweroff.target b/debian/system/poweroff.target new file mode 100644 index 00000000..c1fd9f73 --- /dev/null +++ b/debian/system/poweroff.target @@ -0,0 +1,4 @@ +[Unit] +Description=Power Off +Names=runlevel0.target +Requires=poweroff.service diff --git a/debian/system/rc-local.service b/debian/system/rc-local.service new file mode 100644 index 00000000..93e182c9 --- /dev/null +++ b/debian/system/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/debian/system/reboot.service b/debian/system/reboot.service new file mode 100644 index 00000000..020cc651 --- /dev/null +++ b/debian/system/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 stop diff --git a/debian/system/reboot.target b/debian/system/reboot.target new file mode 100644 index 00000000..3afc7300 --- /dev/null +++ b/debian/system/reboot.target @@ -0,0 +1,4 @@ +[Unit] +Description=Reboot +Names=runlevel6.target +Requires=reboot.service diff --git a/debian/system/remote-fs.target b/debian/system/remote-fs.target new file mode 100644 index 00000000..58234a37 --- /dev/null +++ b/debian/system/remote-fs.target @@ -0,0 +1,4 @@ +[Unit] +Description=Remote File Systems +Requires=network.target +After=network.target diff --git a/debian/system/rescue.target b/debian/system/rescue.target new file mode 100644 index 00000000..e0b02ca2 --- /dev/null +++ b/debian/system/rescue.target @@ -0,0 +1,5 @@ +[Unit] +Description=Rescue Target +Requires=basic.target +After=basic.target +Names=runlevel1.target diff --git a/debian/system/rtc-set.target b/debian/system/rtc-set.target new file mode 100644 index 00000000..58bcd82d --- /dev/null +++ b/debian/system/rtc-set.target @@ -0,0 +1,2 @@ +[Unit] +Description=RTC Set diff --git a/debian/system/runlevel0.target b/debian/system/runlevel0.target new file mode 120000 index 00000000..fe6c668a --- /dev/null +++ b/debian/system/runlevel0.target @@ -0,0 +1 @@ +poweroff.target \ No newline at end of file diff --git a/debian/system/runlevel1.target b/debian/system/runlevel1.target new file mode 120000 index 00000000..eedb17fb --- /dev/null +++ b/debian/system/runlevel1.target @@ -0,0 +1 @@ +rescue.target \ No newline at end of file diff --git a/debian/system/runlevel2.target b/debian/system/runlevel2.target new file mode 120000 index 00000000..19c4c93c --- /dev/null +++ b/debian/system/runlevel2.target @@ -0,0 +1 @@ +multi-user.target \ No newline at end of file diff --git a/debian/system/runlevel3.target b/debian/system/runlevel3.target new file mode 100644 index 00000000..f5ce2613 --- /dev/null +++ b/debian/system/runlevel3.target @@ -0,0 +1,4 @@ +[Unit] +Description=Compatibility for Runlevel 3 +Requires=multi-user.target +After=multi-user.target diff --git a/debian/system/runlevel4.target b/debian/system/runlevel4.target new file mode 100644 index 00000000..1200b869 --- /dev/null +++ b/debian/system/runlevel4.target @@ -0,0 +1,4 @@ +[Unit] +Description=Compatibility for Runlevel 4 +Requires=multi-user.target +After=multi-user.target diff --git a/debian/system/runlevel5.target b/debian/system/runlevel5.target new file mode 100644 index 00000000..6f765974 --- /dev/null +++ b/debian/system/runlevel5.target @@ -0,0 +1,4 @@ +[Unit] +Description=Compatibility for Runlevel 5 +Requires=multi-user.target +After=multi-user.target diff --git a/debian/system/runlevel6.target b/debian/system/runlevel6.target new file mode 120000 index 00000000..f2fde431 --- /dev/null +++ b/debian/system/runlevel6.target @@ -0,0 +1 @@ +reboot.target \ No newline at end of file diff --git a/debian/system/shutdown.target b/debian/system/shutdown.target new file mode 100644 index 00000000..e7252069 --- /dev/null +++ b/debian/system/shutdown.target @@ -0,0 +1,3 @@ +[Unit] +Names=shutdown.target +Description=Shutdown diff --git a/debian/system/sigpwr.target b/debian/system/sigpwr.target new file mode 100644 index 00000000..9903184c --- /dev/null +++ b/debian/system/sigpwr.target @@ -0,0 +1,2 @@ +[Unit] +Description=Power Failure diff --git a/debian/system/sysinit.service b/debian/system/sysinit.service new file mode 100644 index 00000000..12663782 --- /dev/null +++ b/debian/system/sysinit.service @@ -0,0 +1,9 @@ +[Unit] +Description=System Initialization + +[Service] +ExecStart=/etc/init.d/rcS +Type=finish +TimeoutSec=0 +StandardInput=tty +ValidNoProcess=yes diff --git a/debian/system/syslog.target b/debian/system/syslog.target new file mode 100644 index 00000000..11d4fda2 --- /dev/null +++ b/debian/system/syslog.target @@ -0,0 +1,4 @@ +[Unit] +Description=System Logger +Requires=rsyslog.service +After=rsyslog.service diff --git a/debian/systemd-services.install b/debian/systemd-services.install new file mode 100644 index 00000000..b7ef1c17 --- /dev/null +++ b/debian/systemd-services.install @@ -0,0 +1 @@ +debian/system/ etc/systemd/ diff --git a/debian/systemd.install b/debian/systemd.install new file mode 100644 index 00000000..8c95db76 --- /dev/null +++ b/debian/systemd.install @@ -0,0 +1,4 @@ +sbin +lib +bin +etc/dbus-1/system.d/