From 4f0d99e04c15e999afbe73af3b685a9704927918 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Fri, 21 Apr 2023 23:12:25 -0700 Subject: add new archive files --- .../etc/systemd/system/dnsmasq_with_logs.service | 20 ++++++++++++++++ .../system/monerod_after_bindsto_mullvad.service | 28 ++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 configs/configs_root_dir/etc/systemd/system/dnsmasq_with_logs.service create mode 100644 configs/configs_root_dir/etc/systemd/system/monerod_after_bindsto_mullvad.service (limited to 'configs/configs_root_dir/etc/systemd/system') 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 -- cgit 1.4.1