Sha256: 27a766e74316b36a912831cd159a3b01cab758d5d6621179c01a1ac52db48ac8
Contents?: true
Size: 1.61 KB
Versions: 1
Compression:
Stored size: 1.61 KB
Contents
#!/bin/bash # Startup script for chef-server # # chkconfig: - 65 35 # description: Server component of the Chef systems integration framework. # processname: chef-server # # config: /etc/sysconfig/chef-server # pidfile: /var/run/chef/chef-server.pid # Source function library . /etc/init.d/functions [ -f /etc/sysconfig/chef-server ] && . /etc/sysconfig/chef-server prog="chef-server" childpidfiles=${CHILDPIDFILES-/var/run/chef/server.%s.pid} pidfile=${PIDFILE-/var/run/chef/server.main.pid} lockfile=${LOCKFILE-/var/lock/subsys/$prog} config=${CONFIG-/etc/chef/server.rb} user=${USER-chef} group=${GROUP-chef} cluster_nodes=${CLUSTER_NODES-2} logfile=${LOGFILE-/var/log/chef/merb.%s.log} options=${OPTIONS-} start() { echo -n "Starting $prog:" daemon chef-server -d -c "$cluster_nodes" -C "$config" -u "$user" -G "$group" -L "$logfile" -P "$childpidfiles" "$options" "&>/dev/null" RETVAL=$? echo [ $RETVAL -eq 0 ] && touch ${lockfile} return $RETVAL } stop() { echo -n "Stopping $prog: " if [ -f $pidfile ]; then killproc chef-server RETVAL=$? if [ $RETVAL -ne 0 ]; then failure; fi; else RETVAL=1 failure; fi rm -f $lockfile echo return $RETVAL } case "$1" in start) start ;; stop) stop ;; restart) stop start ;; condrestart) if [ -f $lockfile ]; then stop start fi ;; status) status chef-server ;; *) echo "Usage: $0 {start|stop|restart|condrestart|status}" exit 1 esac exit $RETVAL
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
runa-chef-0.8.0.1 | distro/redhat/etc/init.d/chef-server |