From 85552a3294f370b1e39e945bbe62e3b352908d06 Mon Sep 17 00:00:00 2001 From: Ruben van de Ven Date: Thu, 7 Mar 2019 21:10:49 +0100 Subject: [PATCH] Supervisor file for clients --- README.md | 4 ++++ supervisor.conf | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100644 supervisor.conf diff --git a/README.md b/README.md index ed90208..ff74428 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,10 @@ cd www gulp ``` +To run a command on all hugveys: +``` +fab -H rubenvandeven.com,saclab@projects.rubenvandeven.com -- uname +``` ## Installation diff --git a/supervisor.conf b/supervisor.conf new file mode 100644 index 0000000..ae52bf4 --- /dev/null +++ b/supervisor.conf @@ -0,0 +1,8 @@ +[program:hugvey_client] +command=python3 hugvey_client.py -c client_config.yml -v +directory=/home/pi/hugvey +logfile=/home/pi/logs/hugvey_client.log +logfile_backups=2 +startsecs=10 +user=pi +autorestart=true