Debian GNU/Linux: Convert finit.conf to finit.d/*.conf

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2017-10-10 11:59:29 +02:00
parent 3c1c5621a5
commit d4d42a7a75
16 changed files with 43 additions and 51 deletions
+7 -51
View File
@@ -1,54 +1,10 @@
# /etc/finit.conf: Example for Debian GNU/Linux 8.5
# Here we use one big (?) finit.conf, but all non-bootstrap services
# can just as easily be listed in a separate /etc/finit.d/*.conf
# /etc/finit.conf: Example for Debian GNU/Linux
# See /etc/finit.d/*.conf and `initctl list` for other services
# The host directive is a fallback if /etc/hostname is missing
host jessie
## Runlevel to start after bootstrap, runlevel 'S'
# Default is 2
#runlevel 2
# Linux kernel modules to load, /etc/modprobe is not used
module button
module evdev
module loop
module psmouse
## Bootstrap services and tasks
# Can be listed here or in /etc/finit.d/*.conf
# Runlevel to start after bootstrap, runlevel 'S'.
# Change this to 3 to start XDM at boot.
runlevel 2
# Some services may need to start very early, e.g. a watchdog daemon.
# Runlevel [S] (bootStrap) is useful for that. It cannot be switched
# to at runtime either, so tasks and run directives usually live here.
# Please note, the run directive is blocking, so be careful!
#service [S12345] /sbin/watchdogd -n -- Watchdog daemon
#run [S] /sbin/probe -- system probe
#run [S] /sbin/setupd --bootstrap -- system bootstrap
service [S12345] /usr/sbin/rsyslogd -n -- Syslog daemon
# Network bringup script not needed if /etc/network/interfaces is used
#network service networking start
# Regular services to be monitored and respawned as needed. Here we use
# a (svc) condition, the listed service must be started (waits for the
# PID file to be created in /run/*.pid) before starting either service,
# (net) conditions are also available.
service [2345] <svc/usr/sbin/rsyslogd> log /usr/sbin/acpid -f -- ACPI daemon
service [2345] <svc/usr/sbin/rsyslogd> /usr/sbin/sshd -D -- SSH daemon
# Here we use XDM since it has few dependencies (relatively speaking).
# It is also an example of a service without a -- description.
# service [3] /usr/sbin/lightdm -- X-Window Display Manager
service [3] /usr/bin/xdm -nodaemon
# Run old-style start scripts from this directory. Very similar to how
# SysV init works: 01first, 02second, etc. see run-parsts(8) for details
#runparts /etc/start.d
# |-- S03keyboard-setup
# |-- S17kbd
# `- S18console-setup
# Virtual consoles to start getty on. Runlevels, speed & $TERM optional
# TTYs are also services, sort of, but they are guaranteed to start at
# the very end of the boot sequence. Finit comes with a built-in getty.
tty [12345] /dev/tty1 115200 vt100
tty [2345] /dev/tty2 38400 linux
tty [2345] /dev/tty3 38400 linux
@@ -0,0 +1,3 @@
# Handle PWR button to shutdown/reboot -- useful in Qemu (virt-manager)
# Depends on rsyslogd having started. Redirect any output to log.
service [2345] <svc/usr/sbin/rsyslogd> log /usr/sbin/acpid -f -- ACPI daemon
@@ -0,0 +1,2 @@
# Oneshot task to run once at bootstrap
task [S] /lib/console-setup/console-setup.sh -- Set console font and keymap
@@ -0,0 +1,2 @@
# Oneshot task to run once at bootstrap
task [S] /lib/console-setup/keyboard-setup.sh -- Set console keyboard layout
@@ -0,0 +1,8 @@
## Linux kernel modules to load
#module fbcon
module button
module evdev
module loop
module psmouse
module mousedev
module 8139cp
@@ -0,0 +1,2 @@
# Simple NTP client (SNTP)
service [2345] <net/route/default> /usr/sbin/ntpclient -n -L pool.ntp.org -- SNTP client
@@ -0,0 +1,2 @@
# Start rsyslogd as soon as possible, should always run
service [S12345] /usr/sbin/rsyslogd -n -- Reliable and extended syslog daemon
@@ -0,0 +1,2 @@
# Start SSH daemon as soon as basic networking comes up
service [2345] <net/lo/up> /usr/sbin/sshd -D -- OpenSSH daemon
@@ -0,0 +1,4 @@
# Consoles to start getty on when system is up
tty [12345] /dev/tty1 115200 vt100 noclear nowait
tty [2345] /dev/tty2 38400 linux noclear nowait
tty [2345] /dev/tty3 38400 linux noclear nowait
+5
View File
@@ -0,0 +1,5 @@
# Here we use XDM since it has few dependencies (relatively speaking).
# It is also an example of a service without a -- description.
# service [3] /usr/sbin/lightdm -- X-Window Display Manager
# service [3] /usr/sbin/lxdm -- Lightweight Login Manager
service [3] /usr/bin/xdm -nodaemon
+1
View File
@@ -0,0 +1 @@
available/console-setup.conf
+1
View File
@@ -0,0 +1 @@
available/keyboard-setup.conf
+1
View File
@@ -0,0 +1 @@
available/modules.conf
+1
View File
@@ -0,0 +1 @@
available/rsyslogd.conf
+1
View File
@@ -0,0 +1 @@
available/sshd.conf
+1
View File
@@ -0,0 +1 @@
available/tty.conf