Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Example importew.service for CentOS 7

Diana Norgaard edited this page Apr 15, 2019 · 3 revisions

Note: In Winston 1.3 replace the two instances of gov.usgs.winston.in.ew.ImportEW with gov.usgs.volcanoes.winston.in.ew.ImportEW

[Unit]
Description             = Winston Earthworm Importer
Wants                   = network.target
After                   = multi-user.target mariadb.service
Requires                = mariadb.service

[Service]
WorkingDirectory        = /opt/winston/install
EnvironmentFile         =
ExecStart               = /bin/sh -c '/bin/java -Xmx64M -cp /opt/winston/install/lib/winston.jar gov.usgs.winston.in.ew.ImportEW /opt/winston/install/ImportEW.config -i > /opt/winston/install/log/ImportEW.log 2>&1'
ExecStop                = /bin/pkill -f gov.usgs.winston.in.ew.ImportEW
ExecReload              =
StandardOutput          = null
StandardError           = null
User                    = winston
Group                   = winston

[Install]
WantedBy                = multi-user.target
Clone this wiki locally