/ Published in: Bash
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 #!/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
Comments
                    Subscribe to comments
                
                