this post was submitted on 22 Nov 2023
4 points (100.0% liked)

Devuan

60 readers
3 users here now

Devuan GNU+Linux is a fork of Debian without systemd that allows users to reclaim control over their system by avoiding unnecessary entanglements and ensuring Init Freedom.

https://www.devuan.org/

founded 1 year ago
MODERATORS
 

cat << EOF > /etc/systemd/system/rc-local.service

[Unit]
 Description=/etc/rc.local Compatibility
 ConditionPathExists=/etc/rc.local

[Service]
 Type=forking
 ExecStart=/etc/rc.local start
 TimeoutSec=0
 StandardOutput=tty
 RemainAfterExit=yes
 SysVStartPriority=99

[Install]
 WantedBy=http://multi-user.target
EOF

if ! [ -r /etc/rc.local ]; then
        printf '%s\n' '#!/bin/bash' 'exit 0' | tee -a /etc/rc.local
fi
chmod +x /etc/rc.local
systemctl enable rc-local
no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here