service configuration files that needs to be saved just incase the server got lost someday by the cloud provider.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
566B

  1. [Unit]
  2. Description=rpn supertraderfx payment gateway Service
  3. Documentation=man:fail2ban(1)
  4. After=network.target firewalld.service
  5. PartOf=firewalld.service
  6. [Service]
  7. Type=simple
  8. WorkingDirectory=/home/rpn/go
  9. ExecStartPre=/bin/mkdir -p /home/rpn/go/logs
  10. ExecStart=/home/rpn/go/rpn
  11. # if should be logged in systemd journal, use following line or set logtarget to sysout in fail2ban.local
  12. # ExecStart=/usr/bin/fail2ban-server -xf --logtarget=sysout start
  13. PIDFile=/var/run/rpn.pid
  14. Restart=on-failure
  15. RestartPreventExitStatus=0 255
  16. [Install]
  17. WantedBy=multi-user.target