Skip to content

Instantly share code, notes, and snippets.

@mariodian
Created January 16, 2019 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mariodian/648ad33a59048093a87e66898fdb2269 to your computer and use it in GitHub Desktop.
Save mariodian/648ad33a59048093a87e66898fdb2269 to your computer and use it in GitHub Desktop.
Grin systemd service
[Unit]
Description=Grin node
After=network.target
[Service]
WorkingDirectory=/home/satoshi/.grin/
User=satoshi
Group=satoshi
PrivateDevices=yes
Type=simple
ExecStart=/usr/local/bin/grin
ExecReload=/bin/kill -HUP $MAINPID
KillMode=mixed
KillSignal=SIGTERM
TimeoutStopSec=60
Restart=on-failure
RestartSec=30
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment