Files @ 74dbc9767914
Branch filter:

Location: portage-overlay.git/net-proxy/punjab/files/punjab.initd

chain
remove kde-misc/kio-mtp
#!/sbin/runscript

depend() {
	need net
	need jabber-server
}

start() {
	ebegin "Starting punjab Jabber-HTTP-Polling"
	cd ${TAPDIR} || eerror "Could not cd to ${TAPDIR}"
	if [[ -e ${TAPDIR}/punjab.tap ]]
	then
		rm ${TAPDIR}/punjab.tap
	fi
	mktap punjab \
		--host=${HOST} \
		--port=${PORT} \
		--httpb=${USE_BINDING} \
		--httpp=${USE_POLLING} \
		--soap=${USE_SOAP} \
		--xmlrpc=${USE_XMLRPC} \
		--html_dir=${HTMLDIR}
	start-stop-daemon --start --quiet \
		--exec /usr/bin/twistd -- --quiet \
			--uid=jabber --gid=jabber --pidfile=${PIDFILE} \
			--syslog --no_save -f ${TAPDIR}/punjab.tap
	eend $?
}

stop() {
	ebegin "Stopping punjab Jabber-HTTP-Polling"
	start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
	eend $?
}