New answers tagged


To check the free space as Jenkins Job: Parameters FREE_SPACE: Needed free space in GB. Job #!/usr/bin/env bash free_space="$(df -Ph . | awk 'NR==2 {print $4}')" if [[ "${free_space}" = *G* ]]; then free_space_gb=${x/[^0-9]*/} if [[ ${free_space_gb} -lt ${FREE_SPACE} ]]; then echo "Warning! Low space: ${free_space}" exit 2 fi else echo ...


I've googled right answer: So, I have to add "/usr/bin/bash -lc" to command in ExecStart. It will be: ExecStart = /usr/bin/bash -lc '/usr/local/rvm/rubies/ruby-2.3.8/bin/bundle exec thin -e dev -R -p 7143 -P /var/run/onetime/ -l /var/log/...


You should call thin directly using the wrapper that RVM has provided for you. Without this, the system may end up running the wrong ruby, which indeed appears to be what happened. For example: ExecStart=/usr/bin/bash /usr/local/rvm/wrappers/%i/thin start <your options>

Top 50 recent answers are included