summaryrefslogtreecommitdiff
path: root/etc/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'etc/systemd')
-rw-r--r--etc/systemd/network/10-cloud-init-eth0.network35
l---------etc/systemd/system/multi-user.target.wants/qbittorrent-nox@xyz.service1
-rw-r--r--etc/systemd/system/paccache.service.d/10-remove-all.conf8
-rw-r--r--etc/systemd/system/paccache.service.d/20-remove-all-uninstalled.conf9
4 files changed, 9 insertions, 44 deletions
diff --git a/etc/systemd/network/10-cloud-init-eth0.network b/etc/systemd/network/10-cloud-init-eth0.network
deleted file mode 100644
index 7829f528..00000000
--- a/etc/systemd/network/10-cloud-init-eth0.network
+++ /dev/null
@@ -1,35 +0,0 @@
-# not fully understood
-# https://unix.stackexchange.com/q/509430/
-# man `systemd.network`
-# https://superuser.com/q/1562380
-# https://docs.netgate.com/pfsense/en/latest/network/ipv6/subnets.html
-
-[Match]
-Name=eth0
-
-[Address]
-Address=38.175.201.185/22
-
-[Address]
-Address=2606:a8c0:3::75f/128
-
-[Address]
-# another ipv6 address for aa wireguard+swgp into
-# not sure if it is corret, but it works
-Address=2606:a8c0:3:773::b/64
-
-[Address]
-# the last address seems is the default?
-# ...:1/64 also works, but I use ...:a/64 because crunchbits panel reverse DNS support this address
-# 2024-06-27, ...:1/64 seems doe not work any more, not sure why
-Address=2606:a8c0:3:773::a/64
-# use the following will not need GatewayOnLink=yes in [Route] section, but I'm not sure if it is correct, I'm not sure if those ips could be accessed without gateway, more see https://superuser.com/q/1562380
-#Address=2606:a8c0:3:773::a/48
-
-[Route]
-Gateway=38.175.200.1
-
-[Route]
-Gateway=2606:a8c0:3::1
-# GatewayOnLink=yes needed for 2606:a8c0:3::1 gateway, maybe because 2606:a8c0:3::1 is not in the same subnet as 2606:a8c0:3:38d::a/64? see: https://serverfault.com/q/814419
-GatewayOnLink=yes
diff --git a/etc/systemd/system/multi-user.target.wants/qbittorrent-nox@xyz.service b/etc/systemd/system/multi-user.target.wants/qbittorrent-nox@xyz.service
new file mode 120000
index 00000000..41aa9f51
--- /dev/null
+++ b/etc/systemd/system/multi-user.target.wants/qbittorrent-nox@xyz.service
@@ -0,0 +1 @@
+/usr/lib/systemd/system/qbittorrent-nox@.service \ No newline at end of file
diff --git a/etc/systemd/system/paccache.service.d/10-remove-all.conf b/etc/systemd/system/paccache.service.d/10-remove-all.conf
new file mode 100644
index 00000000..a33a36a2
--- /dev/null
+++ b/etc/systemd/system/paccache.service.d/10-remove-all.conf
@@ -0,0 +1,8 @@
+[Service]
+# may need `sudo systemctl daemon-reload` afterward
+# need a line of `ExecStart=` to clear the list first,
+# more about drop-in dir see `man systemd.unit`, more about ExecStart see `man systemd.service`
+# https://wiki.archlinux.org/title/Systemd#Drop-in_files
+# https://wiki.archlinux.org/title/Systemd#Examples
+ExecStart=
+ExecStart=/usr/bin/paccache -rk0
diff --git a/etc/systemd/system/paccache.service.d/20-remove-all-uninstalled.conf b/etc/systemd/system/paccache.service.d/20-remove-all-uninstalled.conf
deleted file mode 100644
index 38d3c2d0..00000000
--- a/etc/systemd/system/paccache.service.d/20-remove-all-uninstalled.conf
+++ /dev/null
@@ -1,9 +0,0 @@
-[Service]
-# keep original `ExecStart=/usr/bin/paccache -r` while adding to the list
-# because I want the default behavior and also remove all uninstalled pacman package cache
-# may need `sudo systemctl daemon-reload` afterward
-# if I want to clear the list first, I should do a line of `ExecStart=` first
-# more about drop-in dir see `man systemd.unit`, more about ExecStart see `man systemd.service`
-# https://wiki.archlinux.org/title/Systemd#Drop-in_files
-# https://wiki.archlinux.org/title/Systemd#Examples
-ExecStart=/usr/bin/paccache -ruk0