debian/cubicweb-server.prerm
author Julien Cristau <julien.cristau@logilab.fr>
Tue, 16 Apr 2013 16:51:18 +0200
branchstable
changeset 8953 041804bc48e9
parent 0 b97547f5f1fa
permissions -rw-r--r--
[server] add a looping task to free unused cnxsets capture by dead pyro When a pyro client disconnects, we're not necessarily notified so they can hang on to their session/cnxset forever. Don't let them do that. The hacky looping task is only installed when pyro is enabled. This optional activation save this very hacky patch from being rejected. closes #2825380

#! /bin/sh -e
 
case "$1" in
    remove)
	if [ -x "/etc/init.d/cubicweb-ctl" ]; then
	    invoke-rc.d cubicweb-ctl stop || true
	fi
    ;;
esac
 
#DEBHELPER#
 
exit 0