Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions baseimage/configure-host.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions baseimage/upstart/conf-mgr.conf
Original file line number Diff line number Diff line change
@@ -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