monerod: update systemd config#294
Merged
nahuhh merged 1 commit intomonero-project:masterfrom Apr 16, 2026
Merged
Conversation
|
nahuhh
reviewed
Mar 31, 2026
plowsof
reviewed
Apr 1, 2026
plowsof
reviewed
Apr 1, 2026
nahuhh
requested changes
Apr 1, 2026
Collaborator
nahuhh
left a comment
There was a problem hiding this comment.
Can you squash the commits and rename the commit to something like `monerod: update systemd config"
Contributor
Author
Done. Out of curiosity, why don't you want to use GitHub's built-in squash and merge? |
Collaborator
|
Because it modifies your commits. Maintainers on monero-project merge as-is |
nahuhh
approved these changes
Apr 2, 2026
plowsof
approved these changes
Apr 2, 2026
Contributor
Author
|
Would you be interested in hardening the daemon's systemd service? I managed to get Adding the following worked for me without affecting node functionality in any way: # optional hardening
NoNewPrivileges=true
PrivateTmp=true
ProtectHostname=true
ProtectClock=true
LockPersonality=true
RestrictRealtime=true
ProtectKernelLogs=true
RestrictSUIDSGID=true
SystemCallArchitectures=native
PrivateDevices=true
UMask=0077
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/var/lib/monero
ReadOnlyPaths=/etc/monero
CapabilityBoundingSet=
RestrictNamespaces=true
ProtectProc=invisible
ProcSubset=pid
RemoveIPC=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectControlGroups=true
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX AF_NETLINK
SystemCallFilter=@system-service ~@privileged
SystemCallErrorNumber=EPERM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates the example
systemdservice configuration for runningmonerodto simplify the setup and improve reliability. The changes focus on making the service easier to manage and more robust, especially in how it starts and interacts with the system.Service configuration improvements:
Typefromforkingtosimpleand removed the use of--detachand thePIDFile, sosystemdmanages the process directly without needing to track a separate daemonized process.Requires=network-online.targetto ensure the service only starts after the network is fully online, improving startup reliability.ExecStartcommand to remove unnecessary options and add--non-interactivefor better automation and compatibility withsystemd.RuntimeDirectorydirective, simplifying the configuration since the service no longer needs to manage a PID file.