[seiscomp, scanloc] Install, add .gitignore
This commit is contained in:
6
share/templates/seedlink/mseedfifo/seedlink_plugin.tpl
Normal file
6
share/templates/seedlink/mseedfifo/seedlink_plugin.tpl
Normal file
@ -0,0 +1,6 @@
|
||||
* template: $template
|
||||
plugin mseedfifo cmd="$seedlink.plugin_dir/mseedfifo_plugin$seedlink._daemon_opt -v $plugins.mseedfifo.noexit_param -d $plugins.mseedfifo.fifo_param"
|
||||
timeout = 0
|
||||
start_retry = 1
|
||||
shutdown_wait = 10
|
||||
|
41
share/templates/seedlink/mseedfifo/setup.py
Normal file
41
share/templates/seedlink/mseedfifo/setup.py
Normal file
@ -0,0 +1,41 @@
|
||||
'''
|
||||
Plugin handler for the mseedfifo plugin.
|
||||
'''
|
||||
|
||||
try:
|
||||
import seiscomp.system
|
||||
hasSystem = True
|
||||
except:
|
||||
hasSystem = False
|
||||
|
||||
|
||||
class SeedlinkPluginHandler:
|
||||
# Create defaults
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
def push(self, seedlink):
|
||||
# Check and set defaults
|
||||
address = "%s/%s" % (seedlink.run_dir,'mseedfifo')
|
||||
try:
|
||||
address = seedlink.param('plugins.mseedfifo.fifo', False)
|
||||
if hasSystem:
|
||||
e = seiscomp.system.Environment.Instance()
|
||||
address = e.absolutePath(address)
|
||||
except:
|
||||
address = "%s/%s" % (seedlink.run_dir,'mseedfifo')
|
||||
|
||||
seedlink.setParam('plugins.mseedfifo.fifo_param', address, False)
|
||||
|
||||
noexit = ''
|
||||
try:
|
||||
noexit = seedlink.param('plugins.mseedfifo.noexit', False).lower() in ("yes", "true", "1")
|
||||
if noexit:
|
||||
noexit = ' -n '
|
||||
else:
|
||||
noexit = ''
|
||||
except: noexit = ''
|
||||
seedlink.setParam('plugins.mseedfifo.noexit_param', noexit, False)
|
||||
|
||||
def flush(self, seedlink):
|
||||
self.push(seedlink)
|
Reference in New Issue
Block a user