drop supervisord requirement and use systemd instead #2

Closed
opened 2019-04-24 11:54:03 +02:00 by jan · 1 comment
Owner

gvaweb is running on a VM/host that has systemd that can provide all required functionality to run the celery worker. Supervisord is used for legacy reasons and could be replaced by a systemd service.

  • provide a systemd service unit
  • stop the supervisord service
  • remove the supervisord configuration
  • enable and start the systemd service
  • change the salt configuration for gvaweb
  • document the service usage
gvaweb is running on a VM/host that has systemd that can provide all required functionality to run the celery worker. Supervisord is used for legacy reasons and could be replaced by a systemd service. - provide a systemd service unit - stop the supervisord service - remove the supervisord configuration - enable and start the systemd service - change the salt configuration for gvaweb - document the service usage
Author
Owner

the service is now running as systemd service:

[Unit]
Description=Gnuviechadmin celery worker for website configuration management

[Service]
EnvironmentFile=-/etc/default/gvaweb
ExecStart=/home/gvaweb/gvaweb-venv/bin/celery worker -A gvaweb -Q web --loglevel=INFO
Restart=on-failure
User=gvaweb
WorkingDirectory=/srv/gvaweb/gvaweb

[Install]
WantedBy=multi-user.target
the service is now running as systemd service: ``` [Unit] Description=Gnuviechadmin celery worker for website configuration management [Service] EnvironmentFile=-/etc/default/gvaweb ExecStart=/home/gvaweb/gvaweb-venv/bin/celery worker -A gvaweb -Q web --loglevel=INFO Restart=on-failure User=gvaweb WorkingDirectory=/srv/gvaweb/gvaweb [Install] WantedBy=multi-user.target ```
jan closed this issue 2020-02-29 12:20:52 +01:00
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gnuviech/gvaweb#2
No description provided.