polynomial-c    14/09/22 08:36:39

  Added:                svscan.init-2
  Log:
  Version bump. Removed old. Added rewritten init script
  
  (Portage version: 2.2.13/cvs/Linux x86_64, signed Manifest commit with key 
0x981CA6FC)

Revision  Changes    Path
1.1                  sys-process/daemontools-encore/files/svscan.init-2

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/daemontools-encore/files/svscan.init-2?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/daemontools-encore/files/svscan.init-2?rev=1.1&content-type=text/plain

Index: svscan.init-2
===================================================================
#!/sbin/runscript
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: 
/var/cvsroot/gentoo-x86/sys-process/daemontools-encore/files/svscan.init-2,v 
1.1 2014/09/22 08:36:39 polynomial-c Exp $

pidfile="/var/run/svscan.pid"
command="/usr/bin/svscan"
command_args="/service"
command_background="true"

depend() {
        use net
        before ntpd ntp-client spamd apache apache2
}

stop() {
        ebegin "Stopping service scan"
        start-stop-daemon --stop --exec ${command} \
                --pidfile ${pidfile}
        eend $?

        ebegin "Stopping service scan services"
        svc -dx /service/* 2>/dev/null
        eend $?

        ebegin "Stopping service scan logging"
        svc -dx /service/*/log 2>/dev/null
        eend $?
}




Reply via email to