From aabae465ca0e06e340b55649e6ef8b42b1dbc362 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Fri, 27 Jun 2025 09:52:14 +0300 Subject: [PATCH] install: never-fail {ssh,sshd,sshguard,tor,yggdrasil}.service.d} --- install | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/install b/install index 98728faa..0bda742f 100755 --- a/install +++ b/install @@ -164,8 +164,18 @@ if [ "$(id -u)" == "0" ]; then # Systemd configuration directories. No configuration placed, so safe. mkdir -vp /etc/systemd/{system,system-preset,user,network}/ mkdir -vp /etc/systemd/system/{app.slice.d,service.d}/ + mkdir -vp /etc/systemd/system/{ssh,sshd,sshguard,tor,yggdrasil}.service.d/ + cp -v etc/systemd/system/service.d/never-fail.conf /etc/systemd/system/ssh.service.d/ + cp -v etc/systemd/system/service.d/never-fail.conf /etc/systemd/system/sshd.service.d/ + cp -v etc/systemd/system/service.d/never-fail.conf /etc/systemd/system/sshguard.service.d/ + cp -v etc/systemd/system/service.d/never-fail.conf /etc/systemd/system/tor.service.d/ + cp -v etc/systemd/system/service.d/never-fail.conf /etc/systemd/system/yggdrasil.service.d/ mkdir -vp /etc/systemd/{coredump,login,oomd,journald,resolved,system,timesyncd}.conf.d/ + if hash systemctl 2> /dev/null; then + systemctl daemon-reload + fi + # Enables laziness on checking whether or not apt is installed mkdir -vp /etc/apt/apt.conf.d/ # Enables progress bar and colours for apt/dpkg, which are helpful at