debian/cubicweb-server.prerm
author Julien Cristau <julien.cristau@logilab.fr>
Tue, 06 Sep 2011 15:16:06 +0200
branchstable
changeset 7764 c709f6c457ff
parent 0 b97547f5f1fa
permissions -rw-r--r--
Drop privileges properly (closes #1910561) Use new function from logilab.common.daemon to switch to non-privileged uid and gid.

#! /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