$ -weight: 500;">apt -weight: 500;">install supervisor
-weight: 500;">apt -weight: 500;">install supervisor
-weight: 500;">apt -weight: 500;">install supervisor
cp WebApp /usr/local/bin/
cp WebApp /usr/local/bin/
cp WebApp /usr/local/bin/
nano /etc/supervisor/conf.d/webapp.conf
nano /etc/supervisor/conf.d/webapp.conf
nano /etc/supervisor/conf.d/webapp.conf
[program:webapp]
command=/usr/local/bin/webapp
user=www-data
autostart=true
autorestart=true stdout_logfile=/var/log/supervisor/webapp.log
stdout_logfile_maxbytes=50MB ; ukuran max sebelum rotate
stdout_logfile_backups=3 ; jumlah file backup yang disimpan stderr_logfile=/var/log/supervisor/webapp_error.log
stderr_logfile_maxbytes=50MB
stderr_logfile_backups=3
[program:webapp]
command=/usr/local/bin/webapp
user=www-data
autostart=true
autorestart=true stdout_logfile=/var/log/supervisor/webapp.log
stdout_logfile_maxbytes=50MB ; ukuran max sebelum rotate
stdout_logfile_backups=3 ; jumlah file backup yang disimpan stderr_logfile=/var/log/supervisor/webapp_error.log
stderr_logfile_maxbytes=50MB
stderr_logfile_backups=3
[program:webapp]
command=/usr/local/bin/webapp
user=www-data
autostart=true
autorestart=true stdout_logfile=/var/log/supervisor/webapp.log
stdout_logfile_maxbytes=50MB ; ukuran max sebelum rotate
stdout_logfile_backups=3 ; jumlah file backup yang disimpan stderr_logfile=/var/log/supervisor/webapp_error.log
stderr_logfile_maxbytes=50MB
stderr_logfile_backups=3
supervisorctl reread
supervisorctl -weight: 500;">update
supervisorctl reread
supervisorctl -weight: 500;">update
supervisorctl reread
supervisorctl -weight: 500;">update
supervisorctl -weight: 500;">start webapp
supervisorctl -weight: 500;">start webapp
supervisorctl -weight: 500;">start webapp
supervisorctl -weight: 500;">status webapp
supervisorctl -weight: 500;">status webapp
supervisorctl -weight: 500;">status webapp - Kamu kelola banyak worker/proses sekaligus (misal 5 Celery worker)
- Tim developer perlu -weight: 500;">restart/-weight: 500;">stop proses tanpa akses root
- Ingin konfigurasi yang lebih simpel dibanding systemd - Server production serius — systemd lebih robust dan terintegrasi dengan OS
- Butuh proses jalan sejak boot paling awal
- Sudah familiar dengan Linux system administration