|
[Unit]
|
|
Description=Ethermint
|
|
#propagates activation, deactivation and activation fails.
|
|
Requires=network-online.target
|
|
#propagates activation, deactivation, activation fails and stops
|
|
BindTo=ethermint-server.service
|
|
#propagates stop and restart (one-way)
|
|
PartOf=ethermint-server.service
|
|
#order
|
|
After=network-online.target ethermint-server.service
|
|
#propagates reload
|
|
PropagatesReloadTo=ethermint-server.service
|
|
ReloadPropagatedFrom=ethermint-server.service
|
|
|
|
[Service]
|
|
Restart=on-failure
|
|
User=ethermint
|
|
Group=ethermint
|
|
PermissionsStartOnly=true
|
|
ExecStart=/usr/bin/ethermint --datadir /etc/ethermint
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
KillSignal=SIGTERM
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target ethermint-server.service
|
|
Also=ethermint-server.service
|
|
|