Revision: 12105
Updated Code
at March 2, 2009 17:07 by java2025
Updated Code
#!/bin/sh # pavietnam IP update client # update IP for vietnam1.net SCRIPT=/usr/local/bin/padyn.py PIDFILE=/var/run/padyn.pid SSD=/sbin/start-stop-daemon case "$1" in start) echo -n "Starting Daemon: " if $SSD --stop --quiet --pidfile $PIDFILE --signal 0 then echo "already running" exit fi $SSD --start --background --make-pidfile --pidfile $PIDFILE --exec $SCRIPT echo "done." ;; stop) echo -n "Stopping Daemon: " $SSD --stop --pidfile $PIDFILE rm -f $PIDFILE echo "done." ;; *) echo "Usage: $0 { start | stop }" ;; esac exit 0
Revision: 12104
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at March 2, 2009 16:19 by java2025
Initial Code
#!/bin/sh # pavietnam IP update client # update IP for vietnam2.info SCRIPT=/usr/local/bin/padyn.py PIDFILE=/var/run/padyn.pid SSD=/sbin/start-stop-daemon case "$1" in start) echo -n "Starting Daemon: " if $SSD --stop --quiet --pidfile $PIDFILE --signal 0 then echo "already running" exit fi $SSD --start --background --make-pidfile --pidfile $PIDFILE --exec $SCRIPT echo "done." ;; stop) echo -n "Stopping Daemon: " $SSD --stop --pidfile $PIDFILE rm -f $PIDFILE echo "done." ;; *) echo "Usage: $0 { start | stop }" ;; esac exit 0
Initial URL
Initial Description
Initial Title
init.d script for debian
Initial Tags
Bash
Initial Language
Bash