diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2023-04-01 01:45:40 -0700 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2023-04-01 01:45:40 -0700 |
commit | 646fbe75706fe865561bac89a2e04448566f7448 (patch) | |
tree | 6a570b375bf30ffce236f9c9c2e2a589527c2b57 /usr/lib/systemd/system/monerod.service | |
parent | fe7f405a48c997dca33fe59f909cecddbd570a42 (diff) |
monerod systemd unit, must not run if mullvad not run, not fully understood
Diffstat (limited to 'usr/lib/systemd/system/monerod.service')
-rw-r--r-- | usr/lib/systemd/system/monerod.service | 20 |
1 files changed, 13 insertions, 7 deletions
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 |