MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /etc/init.d/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //etc/init.d/restorecond
#!/bin/sh
#
# restorecond:		Daemo used to maintain path file context
#
# chkconfig:	2345 10 90
# description:	restorecond uses inotify to look for creation of new files listed in the 
#               /etc/selinux/POLICYTYPE/restorefiles.conf file, and sets the correct security 
#               context.
#

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

start() 
{
        echo -n $"Starting restorecond: "
        daemon /usr/sbin/restorecond 

	touch /var/lock/subsys/restorecond
        echo
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond

	rm -f  /var/lock/subsys/restorecond
        echo
}
restart() 
{
    stop
    start
}

[ -f /usr/sbin/restorecond ] || exit 0

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	;;
  restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|reload|condrestart}"
        exit 1
esac

exit 0

Anon7 - 2021