diff options
Diffstat (limited to 'configs/configs_root_dir/etc/systemd')
3 files changed, 54 insertions, 0 deletions
diff --git a/configs/configs_root_dir/etc/systemd/resolved.conf.d/resolved.conf b/configs/configs_root_dir/etc/systemd/resolved.conf.d/resolved.conf new file mode 100644 index 0000000..314a2db --- /dev/null +++ b/configs/configs_root_dir/etc/systemd/resolved.conf.d/resolved.conf @@ -0,0 +1,6 @@ +[Resolve] +# https://wiki.archlinux.org/title/Systemd-resolved#mDNS +# It seems it is enabled by default? But my past experience shows not enabled by default? +# seems no need now, not sure why +MulticastDNS=yes +LLMNR=no diff --git a/configs/configs_root_dir/etc/systemd/system/dnsmasq_with_logs.service b/configs/configs_root_dir/etc/systemd/system/dnsmasq_with_logs.service new file mode 100644 index 0000000..5882549 --- /dev/null +++ b/configs/configs_root_dir/etc/systemd/system/dnsmasq_with_logs.service @@ -0,0 +1,20 @@ +[Unit] +Description=dnsmasq - A lightweight DHCP and caching DNS server +Documentation=man:dnsmasq(8) +After=network.target +Before=network-online.target nss-lookup.target +Wants=nss-lookup.target + +[Service] +Type=dbus +BusName=uk.org.thekelleys.dnsmasq +ExecStartPre=/usr/bin/dnsmasq --test +# https://www.linuxquestions.org/questions/arch-29/where-can-i-look-to-see-where-dnsmasq-is-logging-queries-4175531370/#post5302736 +ExecStart=/usr/bin/dnsmasq -q -k --enable-dbus --user=dnsmasq --pid-file +ExecReload=/bin/kill -HUP $MAINPID +Restart=on-failure +PrivateDevices=true +ProtectSystem=full + +[Install] +WantedBy=multi-user.target diff --git a/configs/configs_root_dir/etc/systemd/system/monerod_after_bindsto_mullvad.service b/configs/configs_root_dir/etc/systemd/system/monerod_after_bindsto_mullvad.service new file mode 100644 index 0000000..fbf3a2e --- /dev/null +++ b/configs/configs_root_dir/etc/systemd/system/monerod_after_bindsto_mullvad.service @@ -0,0 +1,28 @@ +[Unit] +Description=Monero Full Node +After=mullvad-daemon.service +# I do not fully understand all the options +#PartOf=mullvad-daemon.service +#Requisite=mullvad-daemon.service +# from tests, BindsTo will override Requisite? Why? +# BindsTo is stronger than PartOf +# https://pychao.com/2021/02/24/difference-between-partof-and-bindsto-in-a-systemd-unit/ +BindsTo=mullvad-daemon.service +# StopPropagatedFrom functionality seems included in PartOf? +# from tests, StopPropagatedFrom also propagate restart? Why? +# difference between StopPropagatedFrom and BindsTo: +# https://github.com/systemd/systemd/commit/ffec78c05bfc2e6458e05ee54256d0d766a36280 +#StopPropagatedFrom=mullvad-daemon.service + +[Service] +User=xyz + +Type=simple +ExecStart=/usr/bin/monerod --non-interactive +StandardOutput=null +StandardError=null + +Restart=always + +[Install] +WantedBy=multi-user.target |