Quote:
Originally Posted by flipper2011
Would you be so kind and explain EXACTLY how to use this, i'm new to Linux and read a little about it, but not sure how to implement this for this specific application. Can you give me a short tutorial how to do it.
Thanks!!
|
Debian / Ubuntu:
Code:
sudo apt-get update
sudo apt-get install supervisor
sudo nano /etc/supervisor/conf.d/capturbate.conf
Code:
[program:capturebate]
directory=/home/deploy/CaptureBate
command=python /home/deploy/CaptureBate/main.py
autostart=true
autorestart=true
stderr_logfile=/var/log/capturbate.err.log
stdout_logfile=/var/log/capturbate.out.log
Change the directory and command directory to where your directory is.
Then run:
Code:
sudo supervisorctl reread
Should tell you that all is fine.
Then run:
Code:
sudo supervisorctl update
And it should be started, to check run:
And it should output something like:
Code:
capturebate RUNNING pid 24295, uptime 0:01:46