Sha256: 4a2013154e5b83a3da50989e9f147a043f311f13d87d5067e16841d1692e68b5

Contents?: true

Size: 759 Bytes

Versions: 61

Compression:

Stored size: 759 Bytes

Contents

#!/bin/bash

SCRIPT_BASE=`dirname $0`
export RAILS_ENV=$1
export RAILS_ROOT=$2

# stop god
  if [ -e /var/run/god.pid ]; then
    sudo /etc/init.d/god stop
  fi

# install
  sudo gem install god --no-ri --no-rdoc

# init.d
  sudo cp -f ${SCRIPT_BASE}/god /etc/init.d/god
  sudo chown root:root /etc/init.d/god
  sudo chmod 755 /etc/init.d/god

# master.conf
  sudo mkdir -p /etc/god
  sudo cp -f ${SCRIPT_BASE}/master.conf /etc/god/master.conf
  sudo chown root:root /etc/god/master.conf
  sudo chmod 644 /etc/god/master.conf

# logrotate
  sudo cp -f ${SCRIPT_BASE}/logrotate /etc/logrotate.d/god
  sudo chown root:root /etc/logrotate.d/god
  sudo chmod 644 /etc/logrotate.d/god

# service
  sudo /sbin/chkconfig god on

# start
  sudo /etc/init.d/god start

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
daddy-0.3.32 lib/tasks/god/install.sh
daddy-0.3.31 lib/tasks/god/install.sh
daddy-0.3.30 lib/tasks/god/install.sh
daddy-0.3.29 lib/tasks/god/install.sh
daddy-0.3.28 lib/tasks/god/install.sh
daddy-0.3.27 lib/tasks/god/install.sh
daddy-0.3.26 lib/tasks/god/install.sh
daddy-0.3.25 lib/tasks/god/install.sh
daddy-0.3.24 lib/tasks/god/install.sh
daddy-0.3.23 lib/tasks/god/install.sh
daddy-0.3.22 lib/tasks/god/install.sh
daddy-0.3.21 lib/tasks/god/install.sh
daddy-0.3.20 lib/tasks/god/install.sh
daddy-0.3.19 lib/tasks/god/install.sh
daddy-0.3.18 lib/tasks/god/install.sh
daddy-0.3.17 lib/tasks/god/install.sh
daddy-0.3.16 lib/tasks/god/install.sh
daddy-0.3.15 lib/tasks/god/install.sh
daddy-0.3.14 lib/tasks/god/install.sh
daddy-0.3.13 lib/tasks/god/install.sh