From 654ba7b5c25a125ff07c6e57078e743618f145f5 Mon Sep 17 00:00:00 2001 From: Tobias Lindenberg Date: Mon, 9 Apr 2018 18:19:47 +0200 Subject: [PATCH] added output/error log file and supervisorctl commands --- Supervisor-control-file.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Supervisor-control-file.md b/Supervisor-control-file.md index c2e5733..49b6fb4 100644 --- a/Supervisor-control-file.md +++ b/Supervisor-control-file.md @@ -5,4 +5,16 @@ Path: `/etc/supervisor/conf.d/haste-server.conf` command=/usr/bin/node /opt/haste-server/server.js autostart=false autorestart=true - stopasgroup=true \ No newline at end of file + stopasgroup=true + stdout_logfile=/var/log/haste-server/output.log + stdout_logfile_maxbytes=1MB + stdout_logfile_backups=10 + stderr_logfile=/var/log/haste-server/error.log + stderr_logfile_maxbytes=1MB + stderr_logfile_backups=10 + +Commands: +* Start: /usr/bin/supervisorctl start haste-server +* Stop: /usr/bin/supervisorctl stop haste-server +* Restart: /usr/bin/supervisorctl restart haste-server +* View: /usr/bin/supervisorctl tail -f haste-server