diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2023-04-21 23:12:25 -0700 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2023-04-21 23:12:25 -0700 |
commit | 4f0d99e04c15e999afbe73af3b685a9704927918 (patch) | |
tree | 6bdf6ad7545ff546e17013cb3c47e1a659d1d37d /configs/configs_root_dir/etc/systemd/system | |
parent | f7b6653c92b6e20760b79eea49fe21194a7f3e4b (diff) |
add new archive files
Diffstat (limited to 'configs/configs_root_dir/etc/systemd/system')
-rw-r--r-- | configs/configs_root_dir/etc/systemd/system/dnsmasq_with_logs.service | 20 | ||||
-rw-r--r-- | configs/configs_root_dir/etc/systemd/system/monerod_after_bindsto_mullvad.service | 28 |
2 files changed, 48 insertions, 0 deletions
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 |