Sha256: bd77f887dd0a2d59e5861a0bbd0a07a9728fa197d57d8bc3ec847b18aac68c84

Contents?: true

Size: 724 Bytes

Versions: 143

Compression:

Stored size: 724 Bytes

Contents

#!/sbin/openrc-run

name="fcgiwrap"
description="fcgiwrap cgi daemon"

command="/usr/bin/fcgiwrap"
command_background="yes"
user="fcgiwrap"
group="www-data"
: ${socket:=unix:/run/fcgiwrap/fcgiwrap.sock}

depend() {
	need net localmount
	after firewall
}

start_pre() {
	command_args="-c ${nproc:-$(nproc)} -s $socket"
	case "$socket" in
	unix:/*)
		local socket_path=${socket#unix:}
		checkpath --directory --mode 2775 --owner ${user}:${group} \
			${socket_path%/*}
		;;
	esac
}

start() {
	ebegin "Starting ${name}"
	start-stop-daemon --exec ${command} \
		--background \
		-u ${user} -g ${group} \
		--start -- ${command_args}
	eend $?
}

stop_post() {
	case "$socket" in
	unix:/*)
		rm -f "${socket#unix:}"
		;;
	esac
}

Version data entries

143 entries across 143 versions & 2 rubygems

Version Path
smartmachine-1.0.1 lib/smart_machine/grids/prereceiver/fcgiwrap/fcgiwrap.initd
smartmachine-1.0.0 lib/smart_machine/grids/prereceiver/fcgiwrap/fcgiwrap.initd
smartmachine-0.9.0 lib/smart_machine/grids/prereceiver/fcgiwrap/fcgiwrap.initd
smartmachine-0.8.0 lib/smart_machine/grids/prereceiver/fcgiwrap/fcgiwrap.initd
smartmachine-0.7.0 lib/smart_machine/grids/prereceiver/fcgiwrap/fcgiwrap.initd
smartcloud-0.6.0 lib/smartcloud/grids/grid-prereceiver/fcgiwrap/fcgiwrap.initd
smartcloud-0.5.3 lib/smartcloud/grids/grid-prereceiver/fcgiwrap/fcgiwrap.initd
smartcloud-0.5.2 lib/smartcloud/grids/grid-prereceiver/fcgiwrap/fcgiwrap.initd
smartcloud-0.5.1 lib/smartcloud/grids/grid-prereceiver/fcgiwrap/fcgiwrap.initd
smartcloud-0.5.0 lib/smartcloud/grids/grid-prereceiver/fcgiwrap/fcgiwrap.initd
smartcloud-0.4.4 lib/smartcloud/grids/grid-prereceiver/fcgiwrap/fcgiwrap.initd
smartcloud-0.4.3 lib/smartcloud/grids/grid-prereceiver/fcgiwrap/fcgiwrap.initd
smartcloud-0.4.2 lib/smartcloud/grids/grid-prereceiver/fcgiwrap/fcgiwrap.initd
smartcloud-0.4.1 lib/smartcloud/grids/grid-prereceiver/fcgiwrap/fcgiwrap.initd
smartcloud-0.3.2 lib/smartcloud/grids/grid-prereceiver/fcgiwrap/fcgiwrap.initd
smartcloud-0.3.1 lib/smartcloud/grids/grid-prereceiver/fcgiwrap/fcgiwrap.initd
smartcloud-0.3.0 lib/smartcloud/grids/grid-prereceiver/fcgiwrap/fcgiwrap.initd
smartcloud-0.2.4 lib/smartcloud/grids/grid-prereceiver/fcgiwrap/fcgiwrap.initd
smartcloud-0.2.3 lib/smartcloud/grids/grid-prereceiver/fcgiwrap/fcgiwrap.initd
smartcloud-0.2.2 lib/smartcloud/grids/grid-prereceiver/fcgiwrap/fcgiwrap.initd