From 2027809bfd4a5d36b32bfd8091a07a4ac2c41b36 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Mon, 9 Dec 2019 10:43:53 -0500 Subject: [PATCH] Add service unit for provisioner worker --- .../pvc-provisioner-worker.service | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 client-provisioner/pvc-provisioner-worker.service diff --git a/client-provisioner/pvc-provisioner-worker.service b/client-provisioner/pvc-provisioner-worker.service new file mode 100644 index 00000000..9902cacb --- /dev/null +++ b/client-provisioner/pvc-provisioner-worker.service @@ -0,0 +1,16 @@ +# Parallel Virtual Cluster Provisioner client worker unit file + +[Unit] +Description = Parallel Virtual Cluster Provisioner worker +After = network-online.target + +[Service] +Type = simple +WorkingDirectory = /usr/share/pvc +Environment = PYTHONUNBUFFERED=true +Environment = PVC_CONFIG_FILE=/etc/pvc/pvc-provisioner.yaml +ExecStart = /usr/bin/celery worker -A pvc-provisioner.celery --concurrency 1 --loglevel INFO +Restart = on-failure + +[Install] +WantedBy = multi-user.target