Skip to content

Commit

Permalink
feat: add basic and default heaptracking to all nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuef committed Sep 28, 2023
1 parent ef8079f commit 860a0d5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions resources/ansible/roles/node/templates/sn_node.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@
Description=Safe Node %I

[Service]
WorkingDirectory=/home/safe
{% if is_genesis %}
ExecStart={{ node_archive_dest_path }}/safenode \
ExecStart=heaptrack {{ node_archive_dest_path }}/safenode \
--port {{ node_port }} \
--rpc {{ node_rpc_ip }}:{{ node_rpc_port }}
{% else %}
ExecStart={{ node_archive_dest_path }}/safenode \
ExecStart=heaptrack {{ node_archive_dest_path }}/safenode \
--peer {{ genesis_multiaddr }}
{% endif %}
User=safe


[Install]
WantedBy=multi-user.target

0 comments on commit 860a0d5

Please sign in to comment.