diff options
-rw-r--r-- | incoming/apmd/files/apmd | 48 | ||||
-rw-r--r-- | incoming/apmd/files/digest-apmd-3.0.1 | 1 | ||||
-rw-r--r-- | incoming/apmd/files/run | 11 | ||||
-rw-r--r-- | incoming/apmd/files/svc-apmd | 44 |
4 files changed, 0 insertions, 104 deletions
diff --git a/incoming/apmd/files/apmd b/incoming/apmd/files/apmd deleted file mode 100644 index 2f9722a8cc0e..000000000000 --- a/incoming/apmd/files/apmd +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/sh -#RCUPDATE:2 3 4:60:This line is required for script management - -# Based on apmd.init by Dirk Eddelbuettel <edd@debian.org> and -# Avery Pennarun <apenwarr@debian.org> -# Rewritten for gentoo by Craig Joly <joly@ee.ualberta.ca> - -. /etc/rc.d/config/functions - -SERVICE="apmd" -opts="start stop restart" - -PIDFILE=/var/run/apmd.pid -EXEC=/usr/sbin/apmd - -# apmd arguments variable. See the manual page apmd(8) for details. -APMD="" - -check_kernel() { - if [ ! -e /proc/apm ] - then - eerror "APM support has not been compiled into the kernel." - exit 1 - fi -} - -start() { - check_kernel - - ebegin "Starting $SERVICE" - start-stop-daemon --start --quiet --pidfile $PIDFILE --exec \ - $EXEC -- -P /etc/apm/apmd_proxy $APMD - eend $? "Started $SERVICE." "Error starting $SERVICE." -} - -stop() { - ebegin "Stopping $SERVICE" - start-stop-daemon --stop --quiet --pidfile $PIDFILE --exec $EXEC - eend $? "Stopped $SERVICE." "Error stopping $SERVICE." -} - -restart() { - stop - start -} - -doservice ${@} - diff --git a/incoming/apmd/files/digest-apmd-3.0.1 b/incoming/apmd/files/digest-apmd-3.0.1 deleted file mode 100644 index 67e9a7925a22..000000000000 --- a/incoming/apmd/files/digest-apmd-3.0.1 +++ /dev/null @@ -1 +0,0 @@ -MD5 cf3fb2c7165bfa5c963b38fa150527d3 apmd_3.0.1-1.tar.gz diff --git a/incoming/apmd/files/run b/incoming/apmd/files/run deleted file mode 100644 index 8503392dbbb6..000000000000 --- a/incoming/apmd/files/run +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -# apmd arguments variable. See the manual page apmd(8) for detals. -APMD="" - -if [ ! -e /var/run/apmd.pid ] -then - /usr/sbin/apmd -- P /etc/apm/apmd_proxy $APMD - sleep 2 -fi -exec envuidgid daemon /usr/bin/watchpid `cat /var/run/apmd.pid` diff --git a/incoming/apmd/files/svc-apmd b/incoming/apmd/files/svc-apmd deleted file mode 100644 index 85b57f70ec77..000000000000 --- a/incoming/apmd/files/svc-apmd +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/sh -#RCUPDATE:2 3 4:60:This line is required for script management - -# Based on apmd.init by Dirk Eddelbuettel <edd@debian.org> and -# Avery Pennarun <apenwarr@debian.org> -# Rewritten for gentoo by Craig Joly <joly@ee.ualberta.ca> - -. /etc/rc.d/config/functions - -SERVICE="apmd" -opts="start stop" - -# apmd arguments go in /var/lib/supervise/services/apmd/run. -# See the manual page apmd(8) for details. -# APMD="" - -check_kernel() { - if [ ! -e /proc/apm ] - then - eerror "APM support has not been compiled into the kernel." - exit 1 - fi -} - -start() { - check_kernel - - ebegin "Starting $SERVICE" - ln -sf ../services/${SERVICE} ${SVCDIR}/control/${SERVICE} - eend $? -} - -stop() { - ebegin "Stopping $SERVICE" - if [ -e ${SVCDIR}/control/${SERVICE} ] - then - /usr/bin/svc -dx ${SVCDIR}/control/${SERVICE} - rm ${SVCDIR}/control/${SERVICE} - fi - eend $? -} - -doservice ${@} - |