mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 13:33:09 +07:00
finit.c:
o New service and shell_service stanzas for finit.conf
o Run service_startup() before /etc/finit.d/ hooks
o Run service_monitor() at end of startup
helpers.c:
o Several new functions:
- print_desc() displays a service starting up
- print_result() shows if service started OK or not
- start_process() is used by the services framework
svc.c:
Generic API for managing svc_t structures
ipc.o:
TIPC based framework for communicating with the service monitor.
E.g., to relay (re)configuration signals from a Web/CLI
front-end via finit to one or many setup daemons, and back.
services.c:
Service monitor framework
strlcpy.c:
Secure strncpy() replacement from OpenBSD under the free ISC License.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
11 lines
196 B
Plaintext
11 lines
196 B
Plaintext
# Simple Debian finit.conf
|
|
check /dev/vda1
|
|
module tipc
|
|
module evdev
|
|
module loop
|
|
module psmouse
|
|
user admin
|
|
host testbed
|
|
network service networking start
|
|
service /usr/sbin/sshd -D -- OpenSSH Server
|