From 1ee10bd9802a58e7d7dd809ff22cf36282018fa9 Mon Sep 17 00:00:00 2001 From: pcrews Date: Thu, 6 Dec 2012 13:38:20 -0500 Subject: [PATCH] Added basic upstart file for libra_worker to libra/etc/libra_worker.conf. Still need to see about making this get installed as part of running setup.py, but the script works for initial purposes Change-Id: Ib70ffadfec015c2fc27fd1316754a3cefbc3211a --- etc/libra_worker.conf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 etc/libra_worker.conf diff --git a/etc/libra_worker.conf b/etc/libra_worker.conf new file mode 100644 index 00000000..948ba8c3 --- /dev/null +++ b/etc/libra_worker.conf @@ -0,0 +1,15 @@ +description "libra_worker" + +start on (net-device-up + and local-filesystems + and runlevel [2345]) +stop on runlevel [!2345] + +script + mkdir /var/run/libra + chown haproxy /var/run/libra + chgrp haproxy /var/run/libra + libra_worker -c /etc/libra.cnf + +end script +