diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-02-02 10:00:00 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-02-02 10:00:00 +0000 |
commit | 32322960234c8ec91e0d42835a3ec5ee63305070 (patch) | |
tree | 71d79574de0193778ad6cc6c96dfd4f74fa6bbbb /system-config/backend | |
parent | Initial commit. (diff) | |
download | open-infrastructure-system-tools-32322960234c8ec91e0d42835a3ec5ee63305070.tar.xz open-infrastructure-system-tools-32322960234c8ec91e0d42835a3ec5ee63305070.zip |
Adding upstream version 20190202.upstream/20190202
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'system-config/backend')
-rw-r--r-- | system-config/backend/systemd/live-config.systemd | 24 | ||||
-rwxr-xr-x | system-config/backend/sysvinit/live-config.init | 36 |
2 files changed, 60 insertions, 0 deletions
diff --git a/system-config/backend/systemd/live-config.systemd b/system-config/backend/systemd/live-config.systemd new file mode 100644 index 0000000..ed7069b --- /dev/null +++ b/system-config/backend/systemd/live-config.systemd @@ -0,0 +1,24 @@ +## live-config - System Configuration Components +## +## live-config contains the components that configure a live system during +## the boot process (late userspace). +## +## This is the systemd service for live-config. + + +[Unit] +Description=live-config contains the components that configure a live system during the boot process (late userspace). +Documentation=man:live-config +Before=basic.target udev.service +After=local-fs.target +DefaultDependencies=no +ConditionPathExists=/bin/live-config +ConditionKernelCommandLine=boot=live + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/bin/live-config + +[Install] +WantedBy=basic.target diff --git a/system-config/backend/sysvinit/live-config.init b/system-config/backend/sysvinit/live-config.init new file mode 100755 index 0000000..270de99 --- /dev/null +++ b/system-config/backend/sysvinit/live-config.init @@ -0,0 +1,36 @@ +#!/bin/sh + +## live-config contains the components that configure a live system during +## the boot process (late userspace). +## +## This is the sysvinit initscript for live-config. + + +### BEGIN INIT INFO +# Provides: live-config +# Required-Start: +# Required-Stop: +# Should-Start: +# Should-Stop: +# Default-Start: S +# Default-Stop: +# Short-Description: live-config - System Configuration Components +# Description: live-config contains the components that configure a +# live system during the boot process (late userspace). +# X-Start-Before: mountkernfs +# X-Stop-After: +# X-Interactive: true +### END INIT INFO + +case "${1}" in + start) + if [ -e /bin/live-config ] + then + /bin/live-config ${@} + fi + ;; + + force-reload|restart|stop) + + ;; +esac |