Sha256: 8baf84688504cffb9e0b5aa0aa1b7cc2d216adb46a881968942db97248ea0125

Contents?: true

Size: 735 Bytes

Versions: 116

Compression:

Stored size: 735 Bytes

Contents

#!/bin/sh
### BEGIN INIT INFO
# Provides:          thin
# Required-Start:    $local_fs $remote_fs
# Required-Stop:     $local_fs $remote_fs
# Default-Start:     2 3 4 5
# Default-Stop:      S 0 1 6
# Short-Description: thin initscript
# Description:       thin
### END INIT INFO

# Original author: Forrest Robertson

# Do NOT "set -e"

DAEMON=<%= Command.script %>
SCRIPT_NAME=<%= INITD_PATH %>
CONFIG_PATH=<%= config_files_path %>

# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0

case "$1" in
  start)
	$DAEMON start --all $CONFIG_PATH
	;;
  stop)
	$DAEMON stop --all $CONFIG_PATH
	;;
  restart)
	$DAEMON restart --all $CONFIG_PATH
	;;
  *)
	echo "Usage: $SCRIPT_NAME {start|stop|restart}" >&2
	exit 3
	;;
esac

:

Version data entries

116 entries across 115 versions & 12 rubygems

Version Path
thin-1.2.4 lib/thin/controllers/service.sh.erb
thin-1.2.3 lib/thin/controllers/service.sh.erb
thin-0.7.0-x86-mswin32-60 lib/thin/controllers/service.sh.erb
thin-0.6.4-x86-mswin32-60 lib/thin/controllers/service.sh.erb
thin-0.6.3 lib/thin/controllers/service.sh.erb
thin-0.6.3-x86-mswin32-60 lib/thin/controllers/service.sh.erb
thin-0.6.4 lib/thin/controllers/service.sh.erb
thin-0.7.0 lib/thin/controllers/service.sh.erb
thin-1.0.0 lib/thin/controllers/service.sh.erb
thin-0.7.1-x86-mswin32-60 lib/thin/controllers/service.sh.erb
thin-0.8.0 lib/thin/controllers/service.sh.erb
thin-0.8.1 lib/thin/controllers/service.sh.erb
thin-1.2.1 lib/thin/controllers/service.sh.erb
thin-0.8.2 lib/thin/controllers/service.sh.erb
thin-1.2.2 lib/thin/controllers/service.sh.erb
thin-0.7.1 lib/thin/controllers/service.sh.erb