mirror of
https://github.com/seejohnrun/haste-server.git
synced 2024-12-24 11:06:59 +00:00
4
Supervisor control file
Tobias Lindenberg edited this page 2018-04-09 18:19:47 +02:00
Path: /etc/supervisor/conf.d/haste-server.conf
[program:haste-server]
directory=/opt/haste-server/
command=/usr/bin/node /opt/haste-server/server.js
autostart=false
autorestart=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