Disable user lingering & use system systemd services
This commit is contained in:
parent
d8c4f71c62
commit
42e0ee3182
11 changed files with 117 additions and 19 deletions
9
templates/systemd/interface_restart.service.j2
Normal file
9
templates/systemd/interface_restart.service.j2
Normal 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
|
||||
11
templates/systemd/interface_restart.timer.j2
Normal file
11
templates/systemd/interface_restart.timer.j2
Normal 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
4
templates/systemd/mpd.j2
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
[Service]
|
||||
User=sonny
|
||||
4
templates/systemd/transmission.j2
Normal file
4
templates/systemd/transmission.j2
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
[Service]
|
||||
User=sonny
|
||||
Loading…
Add table
Add a link
Reference in a new issue