Skip to content

Commit fdcd310

Browse files
authored
Merge pull request #100 from jacomago/infotags-example
Add the infotags example back to cf.conf and demo.conf
2 parents c9eaf55 + 6d31408 commit fdcd310

File tree

3 files changed

+133
-87
lines changed

3 files changed

+133
-87
lines changed

server/cf.conf

Lines changed: 0 additions & 66 deletions
This file was deleted.

server/demo.conf

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,10 @@
2626
#
2727
# Default plugins
2828
# show - Prints information to daemon log
29-
# db - Stores in sqlite3 database
3029
#
3130
# eg. print and store in database. Database config from section "[lite]"
3231
# Show config from "[show]" although show has no options at present.
33-
##procs = show, db:lite
34-
35-
procs = show
32+
#procs = show, db:lite
3633

3734
# Time interval for sending recceiver advertisments
3835
#announceInterval = 15.0
@@ -54,45 +51,53 @@ procs = show
5451

5552
[lite] # example of "db" plugin config
5653
# Database access module
57-
dbtype = sqlite3
54+
#dbtype = sqlite3
5855

5956
# DB name
6057
# filename for sqlite3
61-
dbname = test.db
58+
#dbname = test.db
6259

6360
# Accessor ID key
6461
# Allows multiple server daemons to share a common database.
6562
# Must be unique for each instance accessing
6663
# a common database.
67-
idkey = 42
64+
#idkey = 42
6865

6966
[cf]
7067
# cf-store application
68+
# a space-separated list of infotags to set as CF Properties
69+
#infotags = archive foo bar blah
70+
7171
# Uncomment line below to turn off the feature to add CA/PVA port info for name server to channelfinder
72-
# iocConnectionInfo = off
72+
#iocConnectionInfo = off
73+
7374
# Uncomment line below to turn on the feature to add alias records to channelfinder
74-
# alias = on
75+
#alias = on
76+
7577
# Uncomment line below to turn on the feature to add EPICS record type to channelfinder
76-
# recordType = on
78+
#recordType = on
79+
7780
# Uncomment line below to turn on the feature to add description field to channelfinder
78-
# recordDesc = on
81+
#recordDesc = on
82+
7983
# The size limit for finding channels (ie the value of the '~size' query parameter)
8084
# If not specified then the fallback is the server default
81-
# findSizeLimit = 10000
85+
#findSizeLimit = 10000
86+
8287
# Mark all channels as 'Inactive' when processor is stopped (default: True)
83-
# cleanOnStop = True
88+
#cleanOnStop = True
89+
8490
# Mark all channels as 'Inactive' when processor is started (default: True)
85-
# cleanOnStart = True
91+
#cleanOnStart = True
92+
8693
# Specify an optional id for the recceiver to be used with cleanOnStart and cleanOnStop
8794
# default value is the hostname of the machine the python interpreter is started on
88-
# recceiverID = recc1
89-
# Debug output file location.
90-
# Produces no file when not defined.
91-
# debug_file_loc = /home/devuser/recsyncdata.txt
92-
#
95+
#recceiverID = recc1
96+
9397
# Comma-separated list of VARIABLE:PropertyName,
9498
# specifying which environment VARIABLEs to pass on to the channel finder
9599
# and defining the corresponding PropertyName
96100
#environment_vars=ENGINEER:Engineer,EPICS_BASE:EpicsVersion,PWD:WorkingDirectory
97-
#Specify the timezone in the time output
98-
timezone = True
101+
102+
# Specify the timezone in the time output
103+
#timezone = True

server/recceiver_full.conf

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
# run with
2+
#twistd -n recceiver -f <thisfile>.conf
3+
4+
[recceiver]
5+
6+
# Logging detail level. Use python logging level name.
7+
loglevel = INFO
8+
9+
# list of broadcast addresses.
10+
addrlist = 255.255.255.255:5049
11+
12+
# Listen for TCP connections on this interface and port.
13+
# Port also used as source for UDP broadcasts.
14+
# Default uses wildcard address and a random port.
15+
bind = 0.0.0.0:0
16+
17+
# Processing chain
18+
# sequence of plugin names seperated by ','
19+
#
20+
# Plugin names may be followed by an instance name (eg. "db:arbitrary")
21+
# which allows for more than one instance of a plugin with different
22+
# configuration
23+
#
24+
# Default plugins
25+
# show - Prints information to daemon log
26+
#
27+
# eg. print and store in database. Database config from section "[lite]"
28+
# Show config from "[show]" although show has no options at present.
29+
procs = cf, show, db:lite
30+
31+
# Time interval for sending recceiver advertisments
32+
announceInterval = 15.0
33+
34+
# Idle Timeout for TCP connections.
35+
tcptimeout = 15.0
36+
37+
# Time to wait before commiting updates
38+
# Doesn't effect IOC clients
39+
commitInterval = 5.0
40+
41+
# Maximum concurrent "active" clients
42+
# to allow.
43+
maxActive = 20
44+
45+
46+
[lite] # example of "db" plugin config
47+
# Database access module
48+
dbtype = sqlite3
49+
50+
# DB name
51+
# filename for sqlite3
52+
dbname = test.db
53+
54+
# Accessor ID key
55+
# Allows multiple server daemons to share a common database.
56+
# Must be unique for each instance accessing
57+
# a common database.
58+
idkey = 42
59+
60+
61+
[cf]
62+
# cf-store application
63+
64+
# A space-separated list of infotags to set as CF Properties
65+
infotags = archive
66+
67+
# Feature to add CA/PVA port info for name server to channelfinder
68+
iocConnectionInfo = on
69+
70+
# Add alias records to channelfinder
71+
alias = on
72+
73+
# Add EPICS record type to channelfinder
74+
recordType = on
75+
76+
# Add description field to channelfinder
77+
recordDesc = on
78+
79+
# The size limit for finding channels (ie the value of the '~size' query parameter)
80+
# If not specified then the fallback is the server default
81+
#findSizeLimit = 10000
82+
83+
# Mark all channels as 'Inactive' when processor is stopped (default: True)
84+
cleanOnStop = True
85+
86+
# Mark all channels as 'Inactive' when processor is started (default: True)
87+
cleanOnStart = True
88+
89+
# Specify an optional id for the recceiver to be used with cleanOnStart and cleanOnStop
90+
# default value is the hostname of the machine the python interpreter is started on
91+
#recceiverID = recc1
92+
93+
# Comma-separated list of VARIABLE:PropertyName,
94+
# specifying which environment VARIABLEs to pass on to the channel finder
95+
# and defining the corresponding PropertyName
96+
environment_vars=ENGINEER:Engineer,EPICS_BASE:EpicsVersion,PWD:WorkingDirectory
97+
98+
# Specify the timezone in the time output
99+
timezone = True
100+
101+
# The channelFinder client is configuration information is
102+
# stored in /etc/channelfinderapi.conf as described in the client
103+
# Can be configured to be this file, like so:
104+
[DEFAULT]
105+
BaseURL=http://channelfinder.site:8080/ChannelFinder
106+
username=MyUserName
107+
password=MyPassword

0 commit comments

Comments
 (0)