Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Commit

Permalink
Added startup script.
Browse files Browse the repository at this point in the history
Closes #21 and #23.
  • Loading branch information
Razican committed Aug 29, 2015
1 parent 67056ef commit 97988c5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions startup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh

echo "[`date`] Starting OpenStratos..." >> /root/control.log
/root/openstratos >> /root/control.log 2>&1 &
sleep 5

while true; do
(pgrep procname && sleep 60) ||
(echo "[`date`] Process not running, restarting..." >> /root/control.log; shutdown -r now)
done

0 comments on commit 97988c5

Please sign in to comment.