New answers tagged

-1

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 ...


0

I've googled right answer: https://mikewilliamson.wordpress.com/2015/08/26/running-a-rails-app-with-systemd-and-liking-it/ 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 config.ru -p 7143 -P /var/run/onetime/onetime.pid -l /var/log/...


1

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