Skip to content

Commit fb5b3b0

Browse files
committed
Add error checks for samson service script
1 parent ea78348 commit fb5b3b0

File tree

2 files changed

+10
-0
lines changed
  • _provisioning/samson-deployment/general/bin/service.d
  • samson-deployment/latest/conf/bin/service.d

2 files changed

+10
-0
lines changed

_provisioning/samson-deployment/general/bin/service.d/samson.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/bin/bash
22

3+
set -o pipefail ## trace ERR through pipes
4+
set -o errtrace ## trace ERR through 'time command' and other functions
5+
set -o nounset ## set -u : exit the script if you try to use an uninitialised variable
6+
set -o errexit ## set -e : exit the script if any statement returns a non-true return value
7+
38
#############################
49
# Vacuum database
510
#############################

samson-deployment/latest/conf/bin/service.d/samson.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/bin/bash
22

3+
set -o pipefail ## trace ERR through pipes
4+
set -o errtrace ## trace ERR through 'time command' and other functions
5+
set -o nounset ## set -u : exit the script if you try to use an uninitialised variable
6+
set -o errexit ## set -e : exit the script if any statement returns a non-true return value
7+
38
#############################
49
# Vacuum database
510
#############################

0 commit comments

Comments
 (0)