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
|
2019-04-02 19:38:19 +00:00
|
|
|
|
|
|
|
info "Creating /var/log/journal"
|
|
|
|
mkdir -p /var/log/journal
|
|
|
|
systemd-tmpfiles --create --prefix /var/log/journal
|