Skip to content

Commit

Permalink
Make sawtooth services restart on failure
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Berg <[email protected]>
  • Loading branch information
rberg2 committed Nov 10, 2017
1 parent 33d44d0 commit 2a533c5
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ User=sawtooth
Group=sawtooth
EnvironmentFile=-/etc/default/sawtooth-poet-validator-registry-tp
ExecStart=/usr/bin/poet-validator-registry-tp $SAWTOOTH_POET_VALIDATOR_REGISTRY_TP_ARGS
Restart=on-failure

[Install]
WantedBy=multi-user.target
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ User=sawtooth
Group=sawtooth
EnvironmentFile=-/etc/default/sawtooth-identity-tp
ExecStart=/usr/bin/identity-tp $SAWTOOTH_IDENTITY_TP_ARGS
Restart=on-failure

[Install]
WantedBy=multi-user.target
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ User=sawtooth
Group=sawtooth
EnvironmentFile=-/etc/default/sawtooth-settings-tp
ExecStart=/usr/bin/settings-tp $SAWTOOTH_SETTINGS_TP_ARGS
Restart=on-failure

[Install]
WantedBy=multi-user.target
1 change: 1 addition & 0 deletions rest_api/packaging/systemd/sawtooth-rest-api.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ User=sawtooth
Group=sawtooth
EnvironmentFile=-/etc/default/sawtooth-rest-api
ExecStart=/usr/bin/sawtooth-rest-api $SAWTOOTH_REST_API_ARGS
Restart=on-failure

[Install]
WantedBy=multi-user.target
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ User=sawtooth
Group=sawtooth
EnvironmentFile=-/etc/default/sawtooth-intkey-tp-python
ExecStart=/usr/bin/intkey-tp-python $SAWTOOTH_INTKEY_TP_PYTHON_ARGS
Restart=on-failure

[Install]
WantedBy=multi-user.target
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ User=sawtooth
Group=sawtooth
EnvironmentFile=-/etc/default/sawtooth-xo-tp-python
ExecStart=/usr/bin/xo-tp-python $SAWTOOTH_XO_TP_PYTHON_ARGS
Restart=on-failure

[Install]
WantedBy=multi-user.target
1 change: 1 addition & 0 deletions validator/packaging/systemd/sawtooth-validator.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ User=sawtooth
Group=sawtooth
EnvironmentFile=-/etc/default/sawtooth-validator
ExecStart=/usr/bin/sawtooth-validator $SAWTOOTH_VALIDATOR_ARGS
Restart=on-failure

[Install]
WantedBy=multi-user.target

0 comments on commit 2a533c5

Please sign in to comment.