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.5.2 lib/tasks/god/install.sh
daddy-0.5.1 lib/tasks/god/install.sh
daddy-0.5.0 lib/tasks/god/install.sh
daddy-0.4.10 lib/tasks/god/install.sh
daddy-0.4.9 lib/tasks/god/install.sh
daddy-0.4.8 lib/tasks/god/install.sh
daddy-0.4.7 lib/tasks/god/install.sh
daddy-0.4.6 lib/tasks/god/install.sh
daddy-0.4.5 lib/tasks/god/install.sh
daddy-0.4.4 lib/tasks/god/install.sh
daddy-0.4.3 lib/tasks/god/install.sh
daddy-0.4.2 lib/tasks/god/install.sh
daddy-0.4.1 lib/tasks/god/install.sh
daddy-0.4.0 lib/tasks/god/install.sh
daddy-0.3.38 lib/tasks/god/install.sh
daddy-0.3.37 lib/tasks/god/install.sh
daddy-0.3.36 lib/tasks/god/install.sh
daddy-0.3.35 lib/tasks/god/install.sh
daddy-0.3.34 lib/tasks/god/install.sh
daddy-0.3.33 lib/tasks/god/install.sh