K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / etc / init.d /
server ip : 104.21.89.46

your ip : 172.69.214.17

H O M E


Filename/etc/init.d/irqbalance
Size1.82 kb
Permissionrwxr-xr-x
Ownerroot : root
Create time27-Apr-2025 09:56
Last modified12-Nov-2012 16:05
Last accessed05-Jul-2025 19:08
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
#!/bin/sh
### BEGIN INIT INFO
# Provides: irqbalance
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: daemon to balance interrupts for SMP systems
### END INIT INFO
# irqbalance init script
# August 2003
# Eric Dorland

# Based on spamassassin init script

PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/irqbalance
NAME=irqbalance
SNAME=irqbalance
DESC="SMP IRQ Balancer"
PIDFILE="/var/run/$NAME.pid"
PNAME="irqbalance"
DOPTIONS=""

# Defaults - don't touch, edit /etc/default/
ENABLED=0
OPTIONS=""
ONESHOT=0

test -x $DAEMON || exit 0

. /lib/lsb/init-functions

test -f /etc/default/irqbalance && . /etc/default/irqbalance

test "$ENABLED" != "0" || exit 0

if test "$ONESHOT" != "0"; then
DOPTIONS="--oneshot"
fi

case "$1" in
start)
log_begin_msg "Starting $DESC: $NAME"

pid=$( pidofproc -p $PIDFILE $DAEMON )
if [ -n "$pid" ] ; then
log_begin_msg ". Already running"
log_end_msg 0
exit 0
fi

start-stop-daemon --start --quiet --oknodo --exec $DAEMON -- --pid=$PIDFILE $OPTIONS $DOPTIONS

log_end_msg $?
;;
stop)
log_begin_msg "Stopping $DESC: $NAME"

start-stop-daemon --stop --quiet --oknodo --exec $DAEMON
rm -f $PIDFILE

log_end_msg $?
;;
restart|force-reload)
log_begin_msg "Restarting $DESC: $NAME"

start-stop-daemon --stop --retry 5 --quiet --oknodo --exec $DAEMON
rm -f $PIDFILE

start-stop-daemon --start --quiet --oknodo --exec $DAEMON -- --pid=$PIDFILE $OPTIONS $DOPTIONS

log_end_msg $?
;;
*)
N=/etc/init.d/$SNAME
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac

exit 0