diff options
Diffstat (limited to 'sys-apps/apmd/files/run')
-rw-r--r-- | sys-apps/apmd/files/run | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys-apps/apmd/files/run b/sys-apps/apmd/files/run new file mode 100644 index 000000000000..8503392dbbb6 --- /dev/null +++ b/sys-apps/apmd/files/run @@ -0,0 +1,11 @@ +#!/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` |