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 :  /usr/ports/comms/aprsd/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/comms/aprsd/files/aprsd.in
#!/bin/sh

# PROVIDE: aprsd
# REQUIRE: NETWORKING
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf
# aprsd_enable="YES"
# aprsd_root="YES" or aprsd_root="NO"

. /etc/rc.subr

name=aprsd
rcvar=aprsd_enable
load_rc_config $name

: ${aprsd_enable=NO}
: ${aprsd_root=NO}
: ${aprsd_user=%%APRSD_RC_USER%%}
: ${aprsd_group=%%APRSD_RC_GROUP%%}

command=%%LOCALBASE%%/bin/aprsd
start_precmd=aprsd_pre
stop_cmd=aprsd_stop
pidfile=/var/run/aprsd.pid

aprsd_pre()
{
	if [ ${aprsd_root} != "YES" ]; then
		echo "Starting aprs server as user ${aprsd_user}:${aprsd_group}."
		install -o ${aprsd_user} -g ${aprsd_group} /dev/null ${pidfile}
		chown -R ${aprsd_user}:${aprsd_group} /var/log/aprsd
	else   
		echo "Starting aprs server as root."
		install -o root -g wheel /dev/null ${pidfile}
                chown -R root:wheel /var/log/aprsd
	fi
	return 0
}

run_rc_command "$1"

Youez - 2016 - github.com/yon3zu
LinuXploit