1 2 3 4 5 6 7 8 9 10 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`