added output/error log file and supervisorctl commands
parent
161d6b00f3
commit
654ba7b5c2
|
@ -5,4 +5,16 @@ Path: `/etc/supervisor/conf.d/haste-server.conf`
|
||||||
command=/usr/bin/node /opt/haste-server/server.js
|
command=/usr/bin/node /opt/haste-server/server.js
|
||||||
autostart=false
|
autostart=false
|
||||||
autorestart=true
|
autorestart=true
|
||||||
stopasgroup=true
|
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
|
||||||
|
|
Loading…
Reference in New Issue