Skip to content

Instantly share code, notes, and snippets.

@ralphtheninja
Last active August 29, 2015 14:05
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 ralphtheninja/535b95908cd1a3b407d2 to your computer and use it in GitHub Desktop.
Save ralphtheninja/535b95908cd1a3b407d2 to your computer and use it in GitHub Desktop.
upstart conf for zetacoind
# save this file as: /etc/init/zetacoind.conf
#
# start zetacoind: 'sudo start zetacoind'
#
# stop zetacoind: 'sudo stop zetacoind'
#
# restart zetacoind: 'sudo restart zetacoind'
# note, if you change this configuration file, a restart is not enough,
# you need to stop and start
#
# list all upstart jobs: 'sudo initctl list`
description "upstart script for zetacoind"
author "ralphtheninja@riseup.net"
start on runlevel [2345]
stop on runlevel [^2345]
setuid ubuntu
setgid ubuntu
respawn
# logs to /var/log/upstart/zetacoind.log and rotates logs within upstart folder (gzipped)
# tip: sudo tail -f /var/log/upstart/zetacoind.log
# tip: sudo zcat /var/log/upstart/zetacoind.log.1.gz | less
console log
exec zetacoind
@ralphtheninja
Copy link
Author

This is not tested at all. Just a quick writeup. Might need some appropriate command line arguments to zetacoind as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment