From 646fbe75706fe865561bac89a2e04448566f7448 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Sat, 1 Apr 2023 01:45:40 -0700 Subject: monerod systemd unit, must not run if mullvad not run, not fully understood --- usr/lib/systemd/system/monerod.service | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'usr') diff --git a/usr/lib/systemd/system/monerod.service b/usr/lib/systemd/system/monerod.service index 63daefa8..d95a3ed8 100644 --- a/usr/lib/systemd/system/monerod.service +++ b/usr/lib/systemd/system/monerod.service @@ -1,16 +1,22 @@ [Unit] Description=Monero Full Node -After=network.target +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=mullvad-daemon.service +# StopPropagatedFrom functionality seems included in PartOf? +# from tests, StopPropagatedFrom also propagate restart? Why? +# not realted: https://github.com/systemd/systemd/commit/ffec78c05bfc2e6458e05ee54256d0d766a36280 +#StopPropagatedFrom=mullvad-daemon.service [Service] -User=monero -Group=monero -WorkingDirectory=~ -StateDirectory=monero -LogsDirectory=monero +User=xyz Type=simple -ExecStart=/usr/bin/monerod --config-file /etc/monerod.conf --non-interactive +ExecStart=/usr/bin/monerod --non-interactive StandardOutput=null StandardError=null -- cgit v1.2.3-70-g09d2