]> err.no Git - systemd/commitdiff
Add systemd-services package
authorTollef Fog Heen <tfheen@err.no>
Sun, 16 May 2010 08:28:54 +0000 (10:28 +0200)
committerTollef Fog Heen <tfheen@err.no>
Sun, 16 May 2010 08:28:54 +0000 (10:28 +0200)
47 files changed:
debian/control
debian/system/basic.target [new file with mode: 0644]
debian/system/checkfs.service [new file with mode: 0644]
debian/system/checkroot.service [new file with mode: 0644]
debian/system/ctrl-alt-del.target [new symlink]
debian/system/default.target [new symlink]
debian/system/getty.target [new file with mode: 0644]
debian/system/getty.target.wants/getty@tty1.service [new symlink]
debian/system/getty.target.wants/getty@tty2.service [new symlink]
debian/system/getty.target.wants/getty@tty3.service [new symlink]
debian/system/getty.target.wants/getty@tty4.service [new symlink]
debian/system/getty.target.wants/getty@tty5.service [new symlink]
debian/system/getty.target.wants/getty@tty6.service [new symlink]
debian/system/getty@.service [new file with mode: 0644]
debian/system/halt.service [new file with mode: 0644]
debian/system/halt.target [new file with mode: 0644]
debian/system/kbrequest.target [new symlink]
debian/system/killall.service [new file with mode: 0644]
debian/system/local-fs.target [new file with mode: 0644]
debian/system/local.service [new symlink]
debian/system/multi-user.target [new file with mode: 0644]
debian/system/multi-user.target.wants/getty.target [new symlink]
debian/system/multi-user.target.wants/systemd-initctl.socket [new symlink]
debian/system/multi-user.target.wants/systemd-logger.socket [new symlink]
debian/system/network.target [new file with mode: 0644]
debian/system/nss-lookup.target [new file with mode: 0644]
debian/system/poweroff.service [new file with mode: 0644]
debian/system/poweroff.target [new file with mode: 0644]
debian/system/rc-local.service [new file with mode: 0644]
debian/system/reboot.service [new file with mode: 0644]
debian/system/reboot.target [new file with mode: 0644]
debian/system/remote-fs.target [new file with mode: 0644]
debian/system/rescue.target [new file with mode: 0644]
debian/system/rtc-set.target [new file with mode: 0644]
debian/system/runlevel0.target [new symlink]
debian/system/runlevel1.target [new symlink]
debian/system/runlevel2.target [new symlink]
debian/system/runlevel3.target [new file with mode: 0644]
debian/system/runlevel4.target [new file with mode: 0644]
debian/system/runlevel5.target [new file with mode: 0644]
debian/system/runlevel6.target [new symlink]
debian/system/shutdown.target [new file with mode: 0644]
debian/system/sigpwr.target [new file with mode: 0644]
debian/system/sysinit.service [new file with mode: 0644]
debian/system/syslog.target [new file with mode: 0644]
debian/systemd-services.install [new file with mode: 0644]
debian/systemd.install [new file with mode: 0644]

index 0ba54e2578ec9cd2aea2280ff89cf086aa19b95d..954cac5fae688b5f144dc6e4ee375ae6d7e34d76 100644 (file)
@@ -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 (file)
index 0000000..b2c8e8a
--- /dev/null
@@ -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 (file)
index 0000000..b10aa30
--- /dev/null
@@ -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 (file)
index 0000000..db6b4b2
--- /dev/null
@@ -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 (symlink)
index 0000000..f2fde43
--- /dev/null
@@ -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 (symlink)
index 0000000..19c4c93
--- /dev/null
@@ -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 (file)
index 0000000..6d9da7c
--- /dev/null
@@ -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 (symlink)
index 0000000..c466b29
--- /dev/null
@@ -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 (symlink)
index 0000000..c466b29
--- /dev/null
@@ -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 (symlink)
index 0000000..c466b29
--- /dev/null
@@ -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 (symlink)
index 0000000..c466b29
--- /dev/null
@@ -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 (symlink)
index 0000000..c466b29
--- /dev/null
@@ -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 (symlink)
index 0000000..c466b29
--- /dev/null
@@ -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 (file)
index 0000000..4cc9d2c
--- /dev/null
@@ -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 (file)
index 0000000..d2ac6d0
--- /dev/null
@@ -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 (file)
index 0000000..03b8117
--- /dev/null
@@ -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 (symlink)
index 0000000..eedb17f
--- /dev/null
@@ -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 (file)
index 0000000..e5c8289
--- /dev/null
@@ -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 (file)
index 0000000..60cce4d
--- /dev/null
@@ -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 (symlink)
index 0000000..ad0e40f
--- /dev/null
@@ -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 (file)
index 0000000..e246687
--- /dev/null
@@ -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 (symlink)
index 0000000..bdba1fe
--- /dev/null
@@ -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 (symlink)
index 0000000..9a828b0
--- /dev/null
@@ -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 (symlink)
index 0000000..253aa93
--- /dev/null
@@ -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 (file)
index 0000000..c84fb99
--- /dev/null
@@ -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 (file)
index 0000000..c889ac3
--- /dev/null
@@ -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 (file)
index 0000000..459ea59
--- /dev/null
@@ -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 (file)
index 0000000..c1fd9f7
--- /dev/null
@@ -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 (file)
index 0000000..93e182c
--- /dev/null
@@ -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 (file)
index 0000000..020cc65
--- /dev/null
@@ -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 (file)
index 0000000..3afc730
--- /dev/null
@@ -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 (file)
index 0000000..58234a3
--- /dev/null
@@ -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 (file)
index 0000000..e0b02ca
--- /dev/null
@@ -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 (file)
index 0000000..58bcd82
--- /dev/null
@@ -0,0 +1,2 @@
+[Unit]
+Description=RTC Set
diff --git a/debian/system/runlevel0.target b/debian/system/runlevel0.target
new file mode 120000 (symlink)
index 0000000..fe6c668
--- /dev/null
@@ -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 (symlink)
index 0000000..eedb17f
--- /dev/null
@@ -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 (symlink)
index 0000000..19c4c93
--- /dev/null
@@ -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 (file)
index 0000000..f5ce261
--- /dev/null
@@ -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 (file)
index 0000000..1200b86
--- /dev/null
@@ -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 (file)
index 0000000..6f76597
--- /dev/null
@@ -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 (symlink)
index 0000000..f2fde43
--- /dev/null
@@ -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 (file)
index 0000000..e725206
--- /dev/null
@@ -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 (file)
index 0000000..9903184
--- /dev/null
@@ -0,0 +1,2 @@
+[Unit]
+Description=Power Failure
diff --git a/debian/system/sysinit.service b/debian/system/sysinit.service
new file mode 100644 (file)
index 0000000..1266378
--- /dev/null
@@ -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 (file)
index 0000000..11d4fda
--- /dev/null
@@ -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 (file)
index 0000000..b7ef1c1
--- /dev/null
@@ -0,0 +1 @@
+debian/system/ etc/systemd/
diff --git a/debian/systemd.install b/debian/systemd.install
new file mode 100644 (file)
index 0000000..8c95db7
--- /dev/null
@@ -0,0 +1,4 @@
+sbin
+lib
+bin
+etc/dbus-1/system.d/