From 8f1241877f392cb9bd9cc8bd72edc63536e0ea8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomas=20Marko=20Miljenovi=C4=87?= Date: Mon, 4 Aug 2014 21:55:45 +1000 Subject: [PATCH 1/2] Add upstart job for twistd, based on station-mgr job. --- baseimage/upstart/conf-mgr.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 baseimage/upstart/conf-mgr.conf diff --git a/baseimage/upstart/conf-mgr.conf b/baseimage/upstart/conf-mgr.conf new file mode 100644 index 00000000..7e4c9c1d --- /dev/null +++ b/baseimage/upstart/conf-mgr.conf @@ -0,0 +1,10 @@ +# Upstart file /etc/init/conf-mgr.conf + +respawn limit 1 5 + +start on runlevel [2345] +stop on runlevel [016] + +script + su - av -c "cd /home/av/eventstreamr/conf-mgr && twistd --pidfile station.pid --nodaemon --python station.py" +end script From 34bc07fa6070f560c4edf42fa39228a5af516c33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomas=20Marko=20Miljenovi=C4=87?= Date: Mon, 4 Aug 2014 22:03:02 +1000 Subject: [PATCH 2/2] Install and enable conf-mgr (twistd) job. --- baseimage/configure-host.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/baseimage/configure-host.sh b/baseimage/configure-host.sh index ad513ef5..6d2a27c1 100755 --- a/baseimage/configure-host.sh +++ b/baseimage/configure-host.sh @@ -192,6 +192,7 @@ sed -i "s/${existing}/${hostname}/g" /etc/hostname echo "- updating /etc/rc.local to start eventstreamr bits" cp $IMAGE/upstart/station-mgr.conf /etc/init/station-mgr.conf +cp $IMAGE/upstart/station-mgr.conf /etc/init/conf-mgr.conf echo "- fix grub" /usr/sbin/grub-install /dev/sda