OSSP CVS Repository

ossp - ossp-pkg/rc/rc_test/rc.dhcpd
Not logged in
[Honeypot]  [Browse]  [Directory]  [Home]  [Login
[Reports]  [Search]  [Ticket]  [Timeline
  [Raw

ossp-pkg/rc/rc_test/rc.dhcpd
#! /bin/sh

echo "Run commands DHCPD starting"

%config
    dhcpd_enable="yes"
    hacking="ofcourse"

%test
    echo "Just an echo to test dhcpd"

%start -p 220 -u root
    echo "Pri 220"
    opServiceEnabled dhcpd || exit 0
    /sw/sbin/dhcpd

%gotest
    echo "Doing gotest section in file rc.dhcpd"
    ping -a -c 4 dt1.dev.de.cw.net
    curl -s ftp://ftp.openpkg.org/current/SRC/ | grep openssl
    date
    echo $0
    if [ $hacking = ofcourse ]; then
        echo "Yes, of course"
    else
        echo "There is no hacking"
    fi
#    cat $0

%stop -p 200 -u root
    opServiceEnabled dhcpd || exit 0
    kill -TERM `cat /sw/var/dhcpd/dhcpd.pid`

echo "Run commands DHCPD finishing"
echo


CVSTrac 2.0.1