#!/bin/sh # # Startup script for resin # # chkconfig: 345 86 14 # description: Resin httpd server # processname: resin # pidfile: /usr/local/resin/httpd.pid # config: /usr/local/resin/conf/resin.conf # . /etc/rc.d/init.d/functions # # Start/stop processes required for resin # RESIN_HOME=/usr/local/resin case "$1" in start) echo -n "Starting resin: " exec /usr/local/resin/bin/httpd.sh start echo ;; restart) echo -n "Restarting resin: " exec /usr/local/resin/bin/httpd.sh restart echo ;; stop) echo -n "Shutting down resin: " exec /usr/local/resin/bin/httpd.sh stop echo ;; *) echo "Usage: $0 {start|restart|stop}" exit 1 esac exit 0