running accessors before db not working (misses admin account)
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Fri, 4 Feb 2011 11:50:41 +0000 (12:50 +0100)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Fri, 4 Feb 2011 11:50:41 +0000 (12:50 +0100)
so merged accessors as one of the early stages of db-config.d

db-config.d/003-accessors [new file with mode: 0644]
plc.d/accessors [deleted file]

diff --git a/db-config.d/003-accessors b/db-config.d/003-accessors
new file mode 100644 (file)
index 0000000..6b43079
--- /dev/null
@@ -0,0 +1,4 @@
+# -*-python-*-
+from PLC.Accessor import AccessorSingleton
+
+AccessorSingleton(api).run_all_tag_locators()
diff --git a/plc.d/accessors b/plc.d/accessors
deleted file mode 100755 (executable)
index 1695f60..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/usr/bin/python /usr/bin/plcsh
-# -*- python -*-
-
-#
-# run this before the 'db' step
-# various object creation functions might depend
-# on the tagtype being created, like
-# 'vref' and 'initscript' for slices, and possibly more
-#
-# priority: 899
-#
-
-from PLC.Accessor import AccessorSingleton
-
-if __name__ == '__main__':
-    print "service plc start accessors : ensuring creation and consistency of accessor tags"
-    AccessorSingleton(api).run_all_tag_locators()
-