forknote / cryptonote-generator

Generate Cryptonote coin with 1 command
104 stars 211 forks source link

Upstart > systemd, please help! #51

Closed zhmrab closed 6 years ago

zhmrab commented 6 years ago

Want to write the equivalent of an upstart in ubuntu 16 for my seed nodes but having some issues, basically want to convert into a systemd service on my servers,

description "mycoin daemon"

start on runlevel [23] stop on shutdown

exec sudo -u fork /home/fork/generated_files/build/yourcoin-linux/yourcoind

post-stop exec sleep 30

respawn respawn limit 5 30

pmitchev commented 6 years ago

[Unit] Description= mycoin daemon

[Service] WorkingDirectory=/root/ ExecStart=/usr/bin/nice -n0 /home/fork/generated_files/build/yourcoin-linux/yourcoind Restart=always RestartSec=30

[Install] WantedBy=multi-user.target

zhmrab commented 6 years ago

@pmitchev thank you!