summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
Diffstat (limited to 'services')
-rw-r--r--services/Makemodule.am5
-rw-r--r--services/agetty.in7
-rw-r--r--services/hostname.in7
-rw-r--r--services/hwclock.in6
-rw-r--r--services/loopback.in10
-rwxr-xr-xservices/sysctl.in8
-rw-r--r--services/sysinit4
7 files changed, 47 insertions, 0 deletions
diff --git a/services/Makemodule.am b/services/Makemodule.am
new file mode 100644
index 0000000..88c34a4
--- /dev/null
+++ b/services/Makemodule.am
@@ -0,0 +1,5 @@
+initdir = @TEMPLATEDIR@
+init_DATA = services/agetty services/hostname services/loopback
+init_DATA += services/sysctl services/hwclock services/sysinit
+
+EXTRA_DIST += services/sysinit
diff --git a/services/agetty.in b/services/agetty.in
new file mode 100644
index 0000000..b4aeebd
--- /dev/null
+++ b/services/agetty.in
@@ -0,0 +1,7 @@
+name = "agetty"
+description = "agetty on %0"
+exec = "@SBINPATH@/agetty %0 linux"
+type = respawn
+target = boot
+after = sysinit
+tty = "/dev/%0"
diff --git a/services/hostname.in b/services/hostname.in
new file mode 100644
index 0000000..4ff5acd
--- /dev/null
+++ b/services/hostname.in
@@ -0,0 +1,7 @@
+name = "hostname"
+description = "reload hostname"
+exec = "@BINPATH@/hostname --file /etc/hostname"
+type = wait
+target = boot
+before = sysinit
+after = hwclock
diff --git a/services/hwclock.in b/services/hwclock.in
new file mode 100644
index 0000000..b558493
--- /dev/null
+++ b/services/hwclock.in
@@ -0,0 +1,6 @@
+name = "hwclock"
+description = "restore time from RTC"
+exec = "@SBINPATH@/hwclock --hctosys --utc"
+type = wait
+target = boot
+before = sysinit
diff --git a/services/loopback.in b/services/loopback.in
new file mode 100644
index 0000000..2720e3c
--- /dev/null
+++ b/services/loopback.in
@@ -0,0 +1,10 @@
+name = "loopback"
+description = "configure network loopback device"
+type = wait
+target = boot
+before = sysinit
+after = hwclock
+after = hostname
+
+exec = "@SBINPATH@/ip addr add 127.0.0.1/8 dev lo brd +"
+exec = "@SBINPATH@/ip link set lo up"
diff --git a/services/sysctl.in b/services/sysctl.in
new file mode 100755
index 0000000..5f76328
--- /dev/null
+++ b/services/sysctl.in
@@ -0,0 +1,8 @@
+name = "sysctl"
+description = "configure kernel paramters"
+exec = "@SBINPATH@/sysctl --system"
+type = wait
+target = boot
+before = sysinit
+after = hwclock
+after = hostname
diff --git a/services/sysinit b/services/sysinit
new file mode 100644
index 0000000..37645a5
--- /dev/null
+++ b/services/sysinit
@@ -0,0 +1,4 @@
+name = "sysinit"
+description = "basic system initialization"
+type = once
+target = boot