OSSP CVS Repository

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

ossp-pkg/rc/rc_test/rc.ntp 1.6
#! /bin/sh

echo "Run commands NTP starting"

%test
    echo "Just an echo to test ntp"

%start -p100 -u root
    echo "Pri 100"
    opServiceEnabled ntp || exit 0
    /sw/sbin/ntp >/dev/null 2>&1

%go
    ping -a -c 4 dt1.dev.de.cw.net
    curl -s ftp://ftp.openpkg.org/current/SRC/ | grep openssl
    cat $0

%stop -p 200 -u root
    kill -TERM `cat /sw/var/ntp/ntp.pid`

echo "Run commands NTP finishing"
echo


CVSTrac 2.0.1