monero-project / monero

Monero: the secure, private, untraceable cryptocurrency
https://getmonero.org
Other
8.93k stars 3.1k forks source link

Use Simple systemd Service Instead of Forking? #3321

Open prikhi opened 6 years ago

prikhi commented 6 years ago

Currently the systemd service file forks the monerod process. This requires storing the pid & log to external files.

By using Type=simple along with the --non-interactive flag for monerod, those files become unnecessary.

Reading the log would use systemctl & journalctl instead:

systemctl status monerod
journalctl -u monerod

If this is a desirable change, I can make a pull request with the necessary changes.

zone117x commented 6 years ago

Could you make a pull? Might facilitate more discussion at least.

tidux commented 2 years ago

This appears to have been completed at some point in the past. Can the service file be shipped in the released binaries now? I ended up hacking together my own --non-interactive service file because I didn't see one in the archive I downloaded, but there is an official one in this repository now.

trasherdk commented 2 years ago

Shouldn't stuff like that be done by package maintainers?