forked from nyancoin-release/nyancoin
-
Notifications
You must be signed in to change notification settings - Fork 10
Nyancoin daemon systemd service
Hendrik Schumann edited this page Mar 9, 2017
·
5 revisions
- Create
/etc/systemd/system/nyancoind.service
:
[Unit] Description=Nyancoin daemon After=network.target
[Service] Type=forking User=nyancoin Group=nyancoin ExecStart=/usr/local/bin/nyancoind -daemon -pid=/var/lib/nyancoin/nyancoind.pid -disablewallet PIDFile=/var/lib/nyancoin/nyancoind.pid Restart=on-failure
Restart=always PrivateTmp=true TimeoutStopSec=300s TimeoutStartSec=2s StartLimitInterval=120s StartLimitBurst=5
[Install] WantedBy=multi-user.target ```
-
You may need to adapt to your own personal setup:
-
ExecStart=/usr/local/bin/nyancoind
⬅ Path to your nyancoind file -
User=nyancoin
⬅ Username to run nyancoind as -
Group=nyancoin
⬅ Group to run nyancoind as -
-disablewallet
⬅ Do not load the wallet and disable wallet RPC calls, can save a few megabytes of RAM. -
PIDFile=/var/lib/nyancoin/nyancoind.pid
and-pid=/var/lib/nyancoin/nyancoind.pid
if you chang the directory path in the next step, adjust these as well.
-
-
Create directories:
mkdir /var/lib/nyancoin/ chown root:nyancoin /var/lib/nyancoin/ -R chmod 770 /var/lib/nyancoin/ -Rc ```
- Start service:
systemctl daemon-reload # Reload configs systemctl enable nyancoind # Start nyancoind on system boot systemctl start nyancoind ```