path: syslog-ng_4.8.1-7/contrib/syslog-ng-debun is_available () { which "$1" | $grepq "no $1 in" && return 1 || return 0 ; } mypidof () { $pseao pid,comm | while read pid bin ; do [ "$bin" = "$1" ] && echo $pid ; done ; } getsyslogpids () { mypidof "${syslogrealbin}" ; } netstatnlp () { netstat -na ; } path: syslog-ng_4.8.1-7/contrib/syslog-ng-debun sed_equivalent_cmd="perl -p -e" unset -f mypidof unset -f getsyslogpids unset -f netstatlunp path: syslog-ng_4.8.1-7/contrib/syslog-ng-debun [ "${command%% *}" = "$1" ] && echo $pid fi ; done ; } getsyslogpids () { mypidof "${syslogrealbin}" ; } getparent () { local self path: syslog-ng_4.8.1-7/contrib/syslog-ng-debun [ "${cmd%% *}" = "$1" ] && echo $pid fi ; done ; } getsyslogpids () { mypidof "${syslogrealbin}" ; } unset distpkgoffile path: syslog-ng_4.8.1-7/contrib/syslog-ng-debun find . '!' \( -name debun.manifest -o -name syslog-ng.debun.txt \) -type f -exec md5sum '{}' \; } mypidof () { ps -e -f | while read uid pid ppid c stime tty time command extra ; do if [ "${stime%%:*}" = "${stime}" ] then path: syslog-ng_4.8.1-7/contrib/syslog-ng-debun tcpdumpopts="-p -s 1500 -w" opensslmajor=0 getsyslogpids () { pidof syslog-ng ; } os_hash_helper () { find . '!' \( -name debun.manifest -o -name syslog-ng.debun.txt \) -type f -print0 | xargs -0 md5sum ; } dfk_parser () { tail -1 | while read FS ALL USED AVAIL UPERC MP; do if echo ${AVAIL} | ${grepq} '%'; then echo ${USED} ; else echo ${AVAIL} ; fi done ; } path: syslog-ng_4.8.1-7/contrib/syslog-ng-debun unset -f dfk_parser unset -f getsyslogpids unset -f mypidof unset -f topcmd unset -f format_ldd_output path: syslog-ng_4.8.1-7/contrib/syslog-ng-debun is_available () { which "$1" | $grepq "no $1 in" && return 1 || return 0 ; } mypidof () { $pseao pid,comm | while read pid bin ; do [ "$bin" = "$1" ] && echo $pid ; done ; } getsyslogpids () { mypidof "${syslogrealbin}" ; } netstatnlp () { netstat -na ; } netstatlunp () { netstat -P udp -na ; } path: syslog-ng_4.8.1-7/contrib/syslog-ng-debun unset -f netstatnlp unset -f netstatlunp unset -f mypidof unset -f topcmd unset -f getsyslogpids path: syslog-ng_4.8.1-7/contrib/syslog-ng-debun netstatlunp () { netstat -na | grep -E "(Internet|Proto|udp)" ; } topcmd () { top -b -d1 > "${1}" ; } mypidof () { $pseao pid,comm | while read pid bin ; do [ "$bin" = "$1" ] && echo $pid ; done; } getsyslogpids () { mypidof syslog-ng ; } distpkgoffile () { : ; } path: syslog-ng_4.8.1-7/contrib/syslog-ng-debun free () { svmon -G -O unit=KB ; } topcmd () { ( uptime ; svmon -G | head -n 3 ; sar -u 1 1 ; echo ; ps auxwww | head -n 1; ps auxwww | grep -v COMMAND | sort -rn +2 ) >"${1}" 2>/dev/null ; } mypidof () { ps -eaf | while read user pid ppid c stime tty time cmd extra; do if [ "${stime%%:*}" = "${stime}" ] then path: syslog-ng_4.8.1-7/contrib/syslog-ng-debun topcmd () { top -b -d1 > "${1}" ; } mypidof () { $pseao pid,comm | while read pid bin ; do [ "$bin" = "$1" ] && echo $pid ; done; } getsyslogpids () { mypidof syslog-ng ; } distpkgoffile () { : ; } distpkgstatus () { : ; } path: syslog-ng_4.8.1-7/contrib/syslog-ng-debun unset -f netstatnlp unset -f netstatlunp unset -f mypidof unset -f topcmd unset -f os_hash_helper path: syslog-ng_4.8.1-7/contrib/balabit-initscripts/init.d syslogng_status() { echo_n "Checking for syslog-ng service: " pid=`pidofproc -p ${PIDFILE} ${SYSLOGNG}` retval=$? if [ $retval -ne 0 ];then path: syslog-ng_4.8.1-7/contrib/balabit-initscripts/init.d syslogng_stop() { echo_n "Stopping syslog-ng: " PID=`pidofproc -p ${PIDFILE} ${SYSLOGNG} | head -1` retval=$? if [ $retval -ne 0 ] || [ -z "$PID" ];then path: syslog-ng_4.8.1-7/contrib/balabit-initscripts/init.d syslogng_start() { echo_n "Starting syslog-ng: " PID=`pidofproc -p ${PIDFILE} ${SYSLOGNG} | head -1` if [ -n "$PID" ] && [ $PID -gt 0 ] ;then log_success_msg "already running: $PID" path: syslog-ng_4.8.1-7/contrib/balabit-initscripts/init.d ;; reload-or-restart) PID=`pidofproc -p ${PIDFILE} ${SYSLOGNG} | head -1` if [ -n "$PID" ] && [ $PID -gt 0 ] ;then syslogng_reload path: syslog-ng_4.8.1-7/contrib/balabit-initscripts/init-functions _status="$?" if [ $_status -eq 0 ];then pidofproc -p "${pidfile}" "$proc" >/dev/null || rm -f "${pidfile}" fi fi path: syslog-ng_4.8.1-7/contrib/balabit-initscripts/init-functions } pidofproc() { proc= pidfile= path: syslog-ng_4.8.1-7/contrib/balabit-initscripts/init-functions unalias start_daemon 2>/dev/null unalias killproc 2>/dev/null unalias pidofproc 2>/dev/null path: syslog-ng_4.8.1-7/contrib/balabit-initscripts/init-functions if [ -z "$1" ];then echo "Usage: pidofproc [-p pidfile] {program}" return 1 fi