From 8f970e9f0947db33ce32383c940c58d027559414 Mon Sep 17 00:00:00 2001 From: MusikAnimal Date: Wed, 10 Jul 2024 14:39:02 -0400 Subject: [PATCH] wikimedia_cloud_customization_script.sh: add tmpfiles.d config for celery This will ensure the /var/run/celery directory is recreated when the VM is rebooted. I've already added /etc/tmpfiles.d/celery.conf to our instance. --- wikimedia_cloud_customization_script.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wikimedia_cloud_customization_script.sh b/wikimedia_cloud_customization_script.sh index 2c1ef07..b8df61d 100644 --- a/wikimedia_cloud_customization_script.sh +++ b/wikimedia_cloud_customization_script.sh @@ -43,6 +43,11 @@ rabbitmqctl set_permissions -p ww_vhost ww_worker ".*" ".*" ".*" rabbitmq-plugins enable rabbitmq_management rabbitmq-server -detached +# Register creation of the /var/run/celery directory on reboot +echo """ +d /var/run/celery 0755 wikiwho wikiwho - +""" > /etc/tmpfiles.d/celery.conf + # Add Celery config cat /home/wikiwho/wikiwho_api/deployment/ww_celery.service > /etc/systemd/system/ww_celery.service