ansible-remote-node/roles/wownerod/templates/wownerod.service.j2
Matt Smith 1985aba322
Add Restart=always to systemd unit
Without this, systemd won't restart the daemon if it is killed by OOM
killer.
2021-04-14 10:36:12 +01:00

18 lines
359 B
Django/Jinja

[Unit]
Description=Wownero Full Node
After=network-online.target
Wants=network-online.target
[Service]
User=wownero
Group=wownero
Environment="MONERO_RANDOMX_UMASK=1"
StateDirectory=wownero
LogsDirectory=wownero
Type=simple
ExecStart={{ wownerod_path }} --config-file /etc/wownerod.conf --non-interactive
Restart=always
[Install]
WantedBy=multi-user.target