Skip to content

Instantly share code, notes, and snippets.

@ichux
Last active February 22, 2024 05:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ichux/b449119a6d11661408303d42e6d3d917 to your computer and use it in GitHub Desktop.
Save ichux/b449119a6d11661408303d42e6d3d917 to your computer and use it in GitHub Desktop.
[program:fs]
environment=DISPLAY=:0
directory=/home/ichux/devcode/passon
numprocs=1
user=ichux
stopwaitsecs=50
command=bash -c "sleep 5 && python3 fullscreen.py"
redirect_stderr=false
stdout_logfile=/home/ichux/logs/%(process_num)s.out
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stderr_logfile=/home/ichux/logs/%(process_num)s.err
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
priority=100
autostart=true
autorestart=unexpected
startsecs=5
startretries=3
exitcodes=0
stopsignal=TERM
;sudo supervisorctl start fs
;sudo supervisorctl stop fs && \
;ps aux | grep [f]ullscreen.py | awk '{print $2}' | xargs kill >/dev/null 2>&1
@ichux
Copy link
Author

ichux commented Feb 22, 2024

directory=/home/ichux/devcode/passon
numprocs=1
user=ichux
stopwaitsecs=50
command=bash -c "DISPLAY=:0 python3 fullscreen.py"

redirect_stderr=false

stdout_logfile=/home/ichux/logs/fsn_%(process_num)s.out
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10

stderr_logfile=/home/ichux/logs/fsn_%(process_num)s.err
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10

priority=999
autostart=false
autorestart=unexpected
startsecs=5
startretries=3
exitcodes=0
stopsignal=TERM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment