diff --git a/supervisor/webhashcat_agent.conf b/supervisor/webhashcat_agent.conf new file mode 100644 index 0000000..23d1f99 --- /dev/null +++ b/supervisor/webhashcat_agent.conf @@ -0,0 +1,52 @@ +; ================================== +; celery worker supervisor example +; ================================== + +; the name of your supervisord program +[program:webhashcatagent] + +; Set full path to celery program if using virtualenv +command=python3 hashcatnode.py + +; The directory to your Django project +directory=/path/to/project/WebHashcat + +; If supervisord is run as the root user, switch users to this UNIX user account +; before doing any processing. +user=root + +; Supervisor will start as many instances of this program as named by numprocs +numprocs=1 + +; Put process stdout output in this file +stdout_logfile=/var/log/webhashcat_agent.log + +; Put process stderr output in this file +stderr_logfile=/var/log/webhashcat_agent.log + +; If true, this program will start automatically when supervisord is started +autostart=true + +; May be one of false, unexpected, or true. If false, the process will never +; be autorestarted. If unexpected, the process will be restart when the program +; exits with an exit code that is not one of the exit codes associated with this +; process’ configuration (see exitcodes). If true, the process will be +; unconditionally restarted when it exits, without regard to its exit code. +autorestart=true + +; The total number of seconds which the program needs to stay running after +; a startup to consider the start successful. +startsecs=10 + +; Need to wait for currently executing tasks to finish at shutdown. +; Increase this if you have very long running tasks. +stopwaitsecs = 600 + +; When resorting to send SIGKILL to the program to terminate it +; send SIGKILL to its whole process group instead, +; taking care of its children as well. +killasgroup=true + +; if your broker is supervised, set its priority higher +; so it starts first +priority=998 diff --git a/supervisor/webhashcat_celery.conf b/supervisor/webhashcat_celery.conf index fcefc14..3fd7ea2 100644 --- a/supervisor/webhashcat_celery.conf +++ b/supervisor/webhashcat_celery.conf @@ -6,7 +6,7 @@ [program:webhashcatcelery] ; Set full path to celery program if using virtualenv -command=celery worker -A WebHashcat --loglevel=INFO +command=celery -A WebHashcat worker --loglevel=INFO ; The directory to your Django project directory=/path/to/project/WebHashcat @@ -19,10 +19,10 @@ user=root numprocs=1 ; Put process stdout output in this file -stdout_logfile=/var/log/webhashcat_worker.log +stdout_logfile=/var/log/webhashcat_celery.log ; Put process stderr output in this file -stderr_logfile=/var/log/webhashcat_worker.log +stderr_logfile=/var/log/webhashcat_celery.log ; If true, this program will start automatically when supervisord is started autostart=true diff --git a/supervisor/webhashcat_celerybeat.conf b/supervisor/webhashcat_celerybeat.conf index 24c9c35..b1e7441 100644 --- a/supervisor/webhashcat_celerybeat.conf +++ b/supervisor/webhashcat_celerybeat.conf @@ -6,7 +6,7 @@ [program:webhashcatcelerybeat] ; Set full path to celery program if using virtualenv -command=celery beat -A WebHashcat --loglevel=INFO +command=celery -A WebHashcat beat --loglevel=INFO ; The directory to your Django project directory=/path/to/project/WebHashcat @@ -19,10 +19,10 @@ user=root numprocs=1 ; Put process stdout output in this file -stdout_logfile=/var/log/webhashcat_beat.log +stdout_logfile=/var/log/webhashcat_celerybeat.log ; Put process stderr output in this file -stderr_logfile=/var/log/webhashcat_beat.log +stderr_logfile=/var/log/webhashcat_celerybeat.log ; If true, this program will start automatically when supervisord is started autostart=true diff --git a/supervisor/webhashcat_manager.conf b/supervisor/webhashcat_manager.conf new file mode 100644 index 0000000..8395abe --- /dev/null +++ b/supervisor/webhashcat_manager.conf @@ -0,0 +1,52 @@ +; ================================== +; celery worker supervisor example +; ================================== + +; the name of your supervisord program +[program:webhashcatmanager] + +; Set full path to celery program if using virtualenv +command=python3 manage.py runserver 0.0.0.0:8000 + +; The directory to your Django project +directory=/path/to/project/WebHashcat + +; If supervisord is run as the root user, switch users to this UNIX user account +; before doing any processing. +user=root + +; Supervisor will start as many instances of this program as named by numprocs +numprocs=1 + +; Put process stdout output in this file +stdout_logfile=/var/log/webhashcat_manager.log + +; Put process stderr output in this file +stderr_logfile=/var/log/webhashcat_manager.log + +; If true, this program will start automatically when supervisord is started +autostart=true + +; May be one of false, unexpected, or true. If false, the process will never +; be autorestarted. If unexpected, the process will be restart when the program +; exits with an exit code that is not one of the exit codes associated with this +; process’ configuration (see exitcodes). If true, the process will be +; unconditionally restarted when it exits, without regard to its exit code. +autorestart=true + +; The total number of seconds which the program needs to stay running after +; a startup to consider the start successful. +startsecs=10 + +; Need to wait for currently executing tasks to finish at shutdown. +; Increase this if you have very long running tasks. +stopwaitsecs = 600 + +; When resorting to send SIGKILL to the program to terminate it +; send SIGKILL to its whole process group instead, +; taking care of its children as well. +killasgroup=true + +; if your broker is supervised, set its priority higher +; so it starts first +priority=998