File debian.openvas-scanner.postinst of Package openvas-scanner

#! /bin/bash

# Restart the OpenVAS daemon if running

  if [ -x /etc/init.d/openvas-scanner ] && \
	  /etc/init.d/openvas-scanner status 2>&1 >/dev/null; then
        	if which invoke-rc.d >/dev/null 2>&1; then
	                invoke-rc.d openvas-scanner restart
		else
		  	/etc/init.d/openvas-scanner restart
		fi
  fi

# We don't let dh_installinit touch this so we do it byhand
update-rc.d openvas-scanner  stop 20 0 6 . >/dev/null
openSUSE Build Service is sponsored by