Disable user lingering & use system systemd services

This commit is contained in:
sonny 2025-01-25 12:52:13 +01:00
parent d8c4f71c62
commit 42e0ee3182
11 changed files with 117 additions and 19 deletions

View file

@ -0,0 +1,9 @@
# {{ ansible_managed }}
#
[Unit]
Description=Service which reconfigures the `link1` interface as a temporary workaround for the buggy r8169 driver
[Service]
ExecStart=/usr/bin/networkctl reconfigure link1
Type=oneshot

View file

@ -0,0 +1,11 @@
# {{ ansible_managed }}
#
[Unit]
Description=Hourly service which reconfigures the `link1` network interface
[Timer]
OnCalendar=hourly
[Install]
WantedBy=timers.target

4
templates/systemd/mpd.j2 Normal file
View file

@ -0,0 +1,4 @@
# {{ ansible_managed }}
[Service]
User=sonny

View file

@ -0,0 +1,4 @@
# {{ ansible_managed }}
[Service]
User=sonny