Skip to content

Instantly share code, notes, and snippets.

@meysius
Last active September 20, 2019 04:40
Show Gist options
  • Save meysius/2f74f0e0837ffee49db2e0a4c568ddd5 to your computer and use it in GitHub Desktop.
Save meysius/2f74f0e0837ffee49db2e0a4c568ddd5 to your computer and use it in GitHub Desktop.
  • Put this in /lib/systemd/system/bitcoind.service
[Unit]
Description=Bitcoin daemon
After=network.target

[Service]
ExecStart=/usr/bin/bitcoind -conf=/home/deploy/.bitcoin/bitcoin.conf -pid=/home/deploy/.bitcoin/bitcoind.pid
RuntimeDirectory=bitcoind
User=deploy
Type=forking
PIDFile=/home/deploy/.bitcoin/bitcoind.pid
Restart=always


PrivateTmp=true
ProtectSystem=full
NoNewPrivileges=true
PrivateDevices=true
MemoryDenyWriteExecute=true

[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment