Browse Source

cosmos-sdk package modifications

pull/1943/head
Greg Szabo 7 years ago
parent
commit
dfee48fcff
6 changed files with 34 additions and 34 deletions
  1. +2
    -2
      build/cosmos-sdk/DEBIAN/prerm
  2. +0
    -3
      build/cosmos-sdk/etc/systemd/system-preset/50-basecoin.preset
  3. +3
    -0
      build/cosmos-sdk/etc/systemd/system-preset/50-cosmos-sdk.preset
  4. +0
    -23
      build/cosmos-sdk/etc/systemd/system/basecoin-server.service
  5. +23
    -0
      build/cosmos-sdk/etc/systemd/system/cosmos-sdk-server.service
  6. +6
    -6
      build/cosmos-sdk/etc/systemd/system/cosmos-sdk.service

+ 2
- 2
build/cosmos-sdk/DEBIAN/prerm View File

@ -18,8 +18,8 @@ set -e
case "$1" in
remove|upgrade|deconfigure)
systemctl stop basecoin 2> /dev/null || :
systemctl stop basecoin-service 2> /dev/null || :
systemctl stop cosmos-sdk 2> /dev/null || :
systemctl stop cosmos-sdk-service 2> /dev/null || :
;;
failed-upgrade)


+ 0
- 3
build/cosmos-sdk/etc/systemd/system-preset/50-basecoin.preset View File

@ -1,3 +0,0 @@
disable basecoin.service
disable basecoin-server.service

+ 3
- 0
build/cosmos-sdk/etc/systemd/system-preset/50-cosmos-sdk.preset View File

@ -0,0 +1,3 @@
disable cosmos-sdk.service
disable cosmos-sdk-server.service

+ 0
- 23
build/cosmos-sdk/etc/systemd/system/basecoin-server.service View File

@ -1,23 +0,0 @@
[Unit]
Description=Basecoin server
Requires=network-online.target
BindTo=basecoin.service
PartOf=basecoin.service
After=network-online.target basecoin.service
PropagatesReloadTo=basecoin.service
ReloadPropagatedFrom=basecoin.service
[Service]
Environment="TMHOME=/etc/basecoin/tendermint"
Restart=on-failure
User=basecoin
Group=basecoin
PermissionsStartOnly=true
ExecStart=/usr/bin/tendermint node
ExecReload=/bin/kill -HUP $MAINPID
KillSignal=SIGTERM
[Install]
WantedBy=multi-user.target basecoin.service
Also=basecoin.service

+ 23
- 0
build/cosmos-sdk/etc/systemd/system/cosmos-sdk-server.service View File

@ -0,0 +1,23 @@
[Unit]
Description=Cosmos SDK Basecoin Tendermint server
Requires=network-online.target
BindTo=cosmos-sdk.service
PartOf=cosmos-sdk.service
After=network-online.target cosmos-sdk.service
PropagatesReloadTo=cosmos-sdk.service
ReloadPropagatedFrom=cosmos-sdk.service
[Service]
Environment="TMHOME=/etc/basecoin/tendermint"
Restart=on-failure
User=basecoin
Group=basecoin
PermissionsStartOnly=true
ExecStart=/usr/bin/tendermint node
ExecReload=/bin/kill -HUP $MAINPID
KillSignal=SIGTERM
[Install]
WantedBy=multi-user.target cosmos-sdk.service
Also=cosmos-sdk.service

build/cosmos-sdk/etc/systemd/system/basecoin.service → build/cosmos-sdk/etc/systemd/system/cosmos-sdk.service View File


Loading…
Cancel
Save