remove boot-v1 support; disable user-services by default

This commit is contained in:
Mikaël Cluseau
2024-01-20 17:44:45 +01:00
parent f8a8344049
commit d0b8c75a9e
13 changed files with 13 additions and 570 deletions

View File

@ -1,16 +0,0 @@
#!/sbin/openrc-run
description="Direktil boot operations."
depend()
{
provide net
before sysctl
}
start()
{
ebegin "Running Direktil boot operations"
/sbin/dkl init boot
eend $? "Direktil boot operations failed"
}

View File

@ -1,16 +0,0 @@
#!/sbin/openrc-run
description="Direktil default operations."
depend()
{
# need anything?
:
}
start()
{
ebegin "Running Direktil default operations"
/sbin/dkl init default
eend $? "Direktil default operations failed"
}

12
layer/etc/init.d/dkl-svc Executable file
View File

@ -0,0 +1,12 @@
#!/sbin/openrc-run
description="dkl: $SVCNAME"
supervisor=supervise-daemon
command="/sbin/dkl logger -- /etc/direktil/services/$SVCNAME"
pidfile=/run/dkl-$SVCNAME.pid
depend()
{
}

View File

@ -1,30 +1,6 @@
# Global OpenRC configuration settings
rc_shell=/sbin/sulogin
# rc_logger launches a logging daemon to log the entire rc process to
# /var/log/rc.log
# NOTE: Linux systems require the devfs service to be started before
# logging can take place and as such cannot log the sysinit runlevel.
#rc_logger="NO"
# Through rc_log_path you can specify a custom log file.
# The default value is: /var/log/rc.log
#rc_log_path="/var/log/rc.log"
# By default we assume that all daemons will start correctly.
# However, some do not - a classic example is that they fork and return 0 AND
# then child barfs on a configuration error. Or the daemon has a bug and the
# child crashes. You can set the number of milliseconds start-stop-daemon
# waits to check that the daemon is still running after starting here.
# The default is 0 - no checking.
#rc_start_wait=100
# Set unicode to YES to turn on unicode support for keyboards and screens.
unicode="YES"
##############################################################################
# SERVICE CONFIGURATION VARIABLES
rc_tty_number=12
##############################################################################
@ -35,7 +11,7 @@ rc_tty_number=12
# cgroups version 1 on /sys/fs/cgroup.
# "legacy" mounts cgroups version 1 on /sys/fs/cgroup
# "unified" mounts cgroups version 2 on /sys/fs/cgroup
rc_cgroup_mode="legacy"
rc_cgroup_mode="hybrid"
# This switch controls whether or not cgroups version 1 controllers are
# individually mounted under

View File

@ -1 +0,0 @@
../../init.d/dkl-default

View File

@ -1 +0,0 @@
../../init.d/dkl-user-services