From 9878a3da9568b100757b0313933441d2c7b1e7d2 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Fri, 4 Feb 2011 12:50:41 +0100 Subject: [PATCH] running accessors before db not working (misses admin account) so merged accessors as one of the early stages of db-config.d --- db-config.d/003-accessors | 4 ++++ plc.d/accessors | 18 ------------------ 2 files changed, 4 insertions(+), 18 deletions(-) create mode 100644 db-config.d/003-accessors delete mode 100755 plc.d/accessors diff --git a/db-config.d/003-accessors b/db-config.d/003-accessors new file mode 100644 index 0000000..6b43079 --- /dev/null +++ b/db-config.d/003-accessors @@ -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 index 1695f60..0000000 --- a/plc.d/accessors +++ /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() - -- 2.43.0