Sha256: 239992a244f07b9dc5b2a5fb5bbb523d587ebb80a1eab58c5010970c3f6efba8

Contents?: true

Size: 674 Bytes

Versions: 35

Compression:

Stored size: 674 Bytes

Contents

#!/sbin/runscript
# Distributed under the terms of the MIT License

NAME=gollum
PID=/var/run/${NAME}.pid
EXEC=/usr/local/bin/gollum
LOG=/var/log/gollum.log

depend() {
	need net
}

start() {
	# Change log file to be owned by GOLLUM_USER
	touch "${LOG}"
	chown "${GOLLUM_USER}" "${LOG}"

	ebegin "Starting Gollum"
	start-stop-daemon --start \
		--name "${NAME}" \
		--user "${GOLLUM_USER}" \
		--pidfile "${PID}" \
		--make-pidfile --background \
		--stderr "${LOG}" \
		--exec "${EXEC}" -- $GOLLUM_OPTS "$GOLLUM_BASE"
	eend $?
}

stop() {
	ebegin "Stopping Gollum"
	start-stop-daemon --stop \
		--name "${NAME}" \
		--user "${GOLLUM_USER}" \
		--pidfile "${PID}"
	eend $?
}

Version data entries

35 entries across 35 versions & 2 rubygems

Version Path
gollum-6.0.1 contrib/openrc/init.d/gollum
gollum-6.0.0 contrib/openrc/init.d/gollum
gollum-5.3.3 contrib/openrc/init.d/gollum
gollum-5.3.2 contrib/openrc/init.d/gollum
gollum-5.3.1 contrib/openrc/init.d/gollum
gollum-5.3.0 contrib/openrc/init.d/gollum
gollum-5.2.3 contrib/openrc/init.d/gollum
gollum-5.2.2 contrib/openrc/init.d/gollum
gollum-5.2.1 contrib/openrc/init.d/gollum
gollum-5.2 contrib/openrc/init.d/gollum
gollum-5.1.2 contrib/openrc/init.d/gollum
gollum-5.1.1 contrib/openrc/init.d/gollum
gollum-5.1 contrib/openrc/init.d/gollum
gollum-5.0.1 contrib/openrc/init.d/gollum
gollum-5.0.0 contrib/openrc/init.d/gollum
gollum-4.1.4 contrib/openrc/init.d/gollum
gollum-4.1.3 contrib/openrc/init.d/gollum
inc_gollum-5.0.1b.pre.rc2 contrib/openrc/init.d/gollum
inc_gollum-5.0.1b.pre.rc1 contrib/openrc/init.d/gollum
inc_gollum-4.1.2d contrib/openrc/init.d/gollum