[seiscomp, scanloc] Install, add .gitignore
This commit is contained in:
6
share/templates/seedlink/mseedscan/seedlink_plugin.tpl
Normal file
6
share/templates/seedlink/mseedscan/seedlink_plugin.tpl
Normal file
@ -0,0 +1,6 @@
|
||||
* template: $template
|
||||
plugin $seedlink.source.id cmd="$seedlink.plugin_dir/mseedscan_plugin -v -N -d $sources.mseedscan.dir -x $pkgroot/var/lib/seedlink/${seedlink.source.id}.seq"
|
||||
timeout = 1200
|
||||
start_retry = 60
|
||||
shutdown_wait = 10
|
||||
|
21
share/templates/seedlink/mseedscan/setup.py
Normal file
21
share/templates/seedlink/mseedscan/setup.py
Normal file
@ -0,0 +1,21 @@
|
||||
import os
|
||||
|
||||
'''
|
||||
Plugin handler for the liss plugin.
|
||||
'''
|
||||
class SeedlinkPluginHandler:
|
||||
# Create defaults
|
||||
def __init__(self): pass
|
||||
|
||||
def push(self, seedlink):
|
||||
# Check and set defaults
|
||||
dir = os.path.join(seedlink.config_dir, "indata")
|
||||
try: address = seedlink.param('sources.mseedscan.dir')
|
||||
except: seedlink.setParam('sources.mseedscan.dir', dir)
|
||||
|
||||
# key is directory
|
||||
return dir
|
||||
|
||||
# Flush does nothing
|
||||
def flush(self, seedlink):
|
||||
pass
|
Reference in New Issue
Block a user