Sha256: a9c920178ab6509d24d5a779a50068e8a930f6bab2743f6580aa11a8a64e5665

Contents?: true

Size: 1.2 KB

Versions: 5

Compression:

Stored size: 1.2 KB

Contents

#!/sbin/runscript
#
# INIT Script for the Jerbil - Ruby Object Broker


depend() {
  use net
  use logger
}
  
describe() {
  einfo "Reliable Broker for Ruby Services"
}

export RUBYOPT="rubygems"
export RUBYLIB=""


# create the options for starting the daemon from the settings in the
# /etc/conf.d/jerbild file

myopts=""
[ -n "${NO_DAEMON}" ] && myopts="${myopts} -n"
[ -n "${CONF_FILE}" ] && myopts="${myopts} -c ${CONF_FILE}"
[ "${VERBOSE}" == "true" ] && [ "${QUIET}" != "true" ] && myopts="${myopts} -V"
[ -n "${NO_SYSLOG}" ] && myopts="${myopts} -S"


start() {
  ebegin "Starting Jerbil Server"
  
  # /var/run is now temporary and may need to be created at each boot
  #if [ ! -d /var/run/jerbil ] ; then
  #  mkdir /var/run/jerbil
  #  chown jerbil:jerbil /var/run/jerbil
  #  chmod 775 /var/run/jerbil
  #  einfo "Created /var/run/jerbil"
  #fi
  
  checkpath -q -d -m 0775 -o jerbil:jerbil /var/run/jerbil

  /bin/su -c "${SBIN_PATH}jerbild ${myopts}" - jerbil

  eend $?
}

status() {
  ebegin "Checking Jerbil Status"
    /bin/su -c "${SBIN_PATH}jerbil-status ${myopts}" - jerbil
  eend $?
}


stop() {
  ebegin "Stopping Jerbil Server"
    /bin/su -c "${SBIN_PATH}jerbil-stop ${myopts}" - jerbil
  eend $?
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
jerbil-1.4.8 etc/init.d/jerbild
jerbil-1.4.7 etc/init.d/jerbild
jerbil-1.4.6 etc/init.d/jerbild
jerbil-1.4.5 etc/init.d/jerbild
jerbil-1.3.3 etc/init.d/jerbild