Gunthy

GUNBOT: The automatic profit generator => General Discussion => Topic started by: dlucio on July 23, 2017, 01:41:10 PM

Title: [HOWTO] Gunbot RPM for Mageia
Post by: dlucio on July 23, 2017, 01:41:10 PM
From my personal blog: http://inside-out.xyz/technology/gunbot-rpm-definition-for-mageia.html

If you do not know, I have been contributing for Mageia since the beginning of this awesome distribution. As a system administrator, one of my biggest concerns is having an easy and repeatable deployment method, hence I am an RPM fan. I have published in the More RPM'ss for Mageia project the RPM SPEC with some source definitions. For those who wonder why here and not in the main distribution, it is simple. This is not an open source project and the way it works, it violates many RPM policies. So, I prefer saving the Mageia team rejection and publish it as an alternative.

Some quick directions how to produce the RPM yourself. I will assume you are familiar with RPM and Linux command line:

This SPEC could work out of the box for CentOS 7. But I haven't tried it. Since I got my trading server with Mageia I do not have the need to do it.

The RPM will put things under /opt/gunbot/. There will be a systemd unit available. For example, if you are going to trade the pair BTC_ETH under Poloniex, do the following:


Enjoy your trading!

Additionally, I offer to do SRPM or the binary RPM for you for a minimum 0.0185 B (Text me if interested). Trust me, using the systemd makes your Linux management happier.
Title: Re: [HOWTO] Gunbot RPM for Mageia
Post by: MagicDude4Eva on December 31, 2017, 03:30:28 PM
Hi there, hoping that you are still around.

I am trying to do this on a RaspberryPi and systemd is working, but Gunbot in CLI mode seems to only log then into systemd which does not provide colors etc. Is there any way to log into a separate file? At the moment I am using screen to have some logging.

Code: [Select]
[Unit]
Description=GunBot Service
After=network.target remote-fs.target nss-lookup.target
 
[Service]
User=pi
Group=pi
Type=simple
WorkingDirectory=/home/pi/gunbot/GunbotArm
ExecStart=/home/pi/gunbot/GunbotArm/gunthy-arm
ExecStop=/usr/bin/kill \$(/run/gunbot.pid)
PIDFile=/run/gunbot.pid
Restart=on-abort
 
[Install]
WantedBy=multi-user.target