citadel/realmfs-builder/realmfs-modules/configure-systemd

21 lines
484 B
Plaintext
Raw Normal View History

2018-03-07 23:52:40 +00:00
info "Adding configuration files to /etc/systemd"
local userconfdir=/etc/systemd/user.conf.d
local loginconfdir=/etc/systemd/logind.conf.d
mkdir -p ${userconfdir} ${loginconfdir}
cat > ${userconfdir}/50-display-env.conf << 'EOF'
[Manager]
DefaultEnvironment="DISPLAY=:0"
EOF
cat > ${loginconfdir}/50-no-kill-user-processes.conf << EOF
[Login]
KillUserProcesses=no
EOF
info "Creating /var/log/journal"
mkdir -p /var/log/journal
systemd-tmpfiles --create --prefix /var/log/journal