if somebody care, my adapted & tested
chaincoind daemon start script with autostart for the standard Masternode Setup on Ubuntu 16.04 (and higher)
copy text into a new file /etc/systemd/system/chaincoind.service
[Unit]
Description=chaincoin's distributed currency daemon
After=network.target
[Service]
User=root
Group=root
Type=forking
PIDFile=/root/.chaincoin/chaincoind.pid
ExecStart=/usr/local/bin/chaincoind -daemon -pid=/root/.chaincoin/chaincoind.pid -conf=/root/.chaincoin/chaincoin.conf -datadir=/root/.chaincoin
#-disablewallet
Restart=always
PrivateTmp=true
TimeoutStopSec=60s
TimeoutStartSec=2s
StartLimitInterval=120s
StartLimitBurst=5
[Install]
WantedBy=multi-user.target
run
systemctl reenable chaincoind
reload config
systemctl daemon-reload
systemctl restart chaincoind
or better
reboot and check for startup with
systemctl status chaincoind
advantage is its autostart on reboot and also on daemon crash
Nice script. Did the same thing exist on Windows platform ?