projects
/
rrq
/
hourglass.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added
[rrq/hourglass.git]
/
run-manager.sh
diff --git
a/run-manager.sh
b/run-manager.sh
index f4743563ead848918654774328d7dbe98e9d4937..3e2690af059fa06eda5426cfdf14402fc280b0b5 100755
(executable)
--- a/
run-manager.sh
+++ b/
run-manager.sh
@@
-1,3
+1,14
@@
#!/bin/bash
#!/bin/bash
-( nohup newlisp -http -d 1070 -w manager/www & )
+function die() {
+ echo "$*" >&2
+ exit 1
+}
+
+SERVICE=hourglass-web
+
+[ -f "$SERVICE" ] || die "** missing $SERVICE ** aborting"
+
+[ -d www ] || $SERVICE install || die "Cannot install www service"
+
+( nohup newlisp -http -d 1070 -w www & )