Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- description "Stratum Mining Proxy"
- author TheSeven
- start on filesystem
- stop on runlevel [!2345]
- start on started stratum
- stop on stopped stratum
- oom never
- expect daemon
- respawn
- respawn limit 10 60 # 10 times in 60 seconds
- kill timeout 120
- script
- # Application Username
- user=fpga
- # Installation Directory
- basedir=/home/$user/stratum
- # Python Directory
- python=/usr/bin/python
- # Script Name
- script=mining_proxy.py
- # Stratum Pool Server Address
- host=stratum.btcguild.com
- # Stratum Pool Server Port
- port=9332
- # Application PID File
- pidfile=$basedir/mining-proxy.pid
- # Don't change anything below here unless you know what you're doing
- [[ -e $pidfile && ! -d "/proc/$(cat $pidfile)" ]] && rm $pidfile
- [[ -e $pidfile && "$(cat /proc/$(cat $pidfile)/cmdline)" != $cmd* ]] && rm $pidfile
- exec start-stop-daemon --start -c $user --chdir $basedir --pidfile $pidfile --startas $python -b -m -- $script -o $host -p $port
- end script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement