git://git.onelab.eu
/
myplc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
20aa5b1
)
Check/Set HRNs of Sites/Slices/Persons at PLC startup
author
Mohamed Larabi
<mohamed.larabi@inria.fr>
Tue, 12 Nov 2013 14:36:41 +0000
(15:36 +0100)
committer
Mohamed Larabi
<mohamed.larabi@inria.fr>
Tue, 12 Nov 2013 14:36:41 +0000
(15:36 +0100)
plc.d/hrn
[new file with mode: 0755]
patch
|
blob
diff --git a/plc.d/hrn
b/plc.d/hrn
new file mode 100755
(executable)
index 0000000..
c90ccbd
--- /dev/null
+++ b/
plc.d/hrn
@@ -0,0
+1,30
@@
+#!/bin/bash
+#
+# priority: 1300
+#
+# Check and Set the HRNs of Sites/Slices/Persons
+#
+# Copyright (C) 2006 The Trustees of Princeton University
+# Mohamed Amine Larabi <mohamed.larabi@inria.fr>
+#
+
+# Source function library and configuration
+. /etc/plc.d/functions
+. /etc/planetlab/plc_config
+
+# Be verbose
+set -x
+
+
+case "$1" in
+ start)
+ MESSAGE=$"Checking/Setting HRNs"
+ dialog "$MESSAGE"
+
+ check-hrns.py
+
+ result "$MESSAGE"
+ ;;
+esac
+
+exit $ERRORS