trypbm.sh
changeset 44 1983a3cc0647
equal deleted inserted replaced
43:7330bec02cfc 44:1983a3cc0647
       
     1 #! /bin/bash
       
     2 
       
     3 # script to locally try out a rebuilt pbm with same
       
     4 # settins as used in pbm (usually run from /etc/init.d)
       
     5 
       
     6 set -x
       
     7 
       
     8 # PATH should only include /usr/* if it runs after the mountnfs.sh script
       
     9 DESC="power manager daemon test"
       
    10 NAME=pbmd
       
    11 DAEMON=./$NAME
       
    12 # to set the node to sleep from 22:00 to 06:00 use this
       
    13 DAEMON_ARGS="/var/log/battery.log /var/log/battery-snapshot.log /etc/bootflag 60 ABS 22 6"
       
    14 # to set the node to sleep from 14:10 to 16:45 use this
       
    15 # DAEMON_ARGS="/var/log/battery.log /var/log/battery-snapshot.log /etc/bootflag 60 ABS 14 10 16 45"
       
    16 # to set the node to sleep for 10 minutes of every 30 use this
       
    17 # DAEMON_ARGS="/var/log/battery.log /var/log/battery-snapshot.log /etc/bootflag 60 REL 30 10"
       
    18 PIDFILE=/var/run/$NAME.pid
       
    19 SCRIPTNAME=/etc/init.d/$NAME
       
    20 
       
    21 $DAEMON $DAEMON_ARGS