__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#!/bin/sh
### BEGIN INIT INFO
# Provides: ntpsec
# Required-Start: $network $remote_fs $syslog
# Required-Stop: $network $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Start NTP daemon
# Description: NTP, the Network Time Protocol, is used to keep computer
# clocks accurate by synchronizing them over the Internet or
# a local network, or by following an accurate hardware
# receiver that interprets GPS, DCF-77, or similar time
# signals.
### END INIT INFO
PATH=/sbin:/bin:/usr/sbin:/usr/bin
. /lib/lsb/init-functions
DAEMON=/usr/sbin/ntpd
PIDFILE=/run/ntpd.pid
test -x $DAEMON || exit 5
if [ -r /etc/default/ntpsec ]; then
. /etc/default/ntpsec
fi
if [ "$IGNORE_DHCP" != "yes" ] && [ -e /run/ntpsec/ntp.conf.dhcp ]; then
NTPD_OPTS="$NTPD_OPTS -c /run/ntpsec/ntp.conf.dhcp"
else
# List the default -c first, so if the admin has specified -c in
# NTPD_OPTS, it is honored.
NTPD_OPTS="-c /etc/ntpsec/ntp.conf $NTPD_OPTS"
fi
NTPD_OPTS="$NTPD_OPTS -u ntpsec:ntpsec"
LOCKFILE=/run/lock/ntpsec-ntpdate
case $1 in
start)
log_daemon_msg "Starting NTP server" "ntpd"
(
flock -w 180 9
# shellcheck disable=SC2086
start-stop-daemon --start --quiet --oknodo --pidfile $PIDFILE --startas $DAEMON -- -p $PIDFILE $NTPD_OPTS
) 9>$LOCKFILE
log_end_msg $?
;;
stop)
log_daemon_msg "Stopping NTP server" "ntpd"
start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE --retry=TERM/30/KILL/5 --exec $DAEMON
log_end_msg $?
rm -f $PIDFILE
;;
restart|force-reload)
$0 stop && sleep 2 && $0 start
;;
try-restart)
if $0 status >/dev/null; then
$0 restart
else
exit 0
fi
;;
reload)
exit 3
;;
status)
status_of_proc $DAEMON "NTP server"
;;
*)
echo "Usage: $0 {start|stop|restart|try-restart|force-reload|status}"
exit 2
;;
esac
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| K01apache-htcacheclean | File | 2.43 KB | 0755 |
|
| K01fio | File | 734 B | 0755 |
|
| S01apache2 | File | 7.95 KB | 0755 |
|
| S01bluetooth | File | 2.88 KB | 0755 |
|
| S01console-setup.sh | File | 1.21 KB | 0755 |
|
| S01cron | File | 2.99 KB | 0755 |
|
| S01cups | File | 2.74 KB | 0755 |
|
| S01cups-browsed | File | 1.92 KB | 0755 |
|
| S01dbus | File | 3.08 KB | 0755 |
|
| S01dphys-swapfile | File | 2.15 KB | 0755 |
|
| S01lightdm | File | 2.55 KB | 0755 |
|
| S01mariadb | File | 7 KB | 0755 |
|
| S01named | File | 3.46 KB | 0755 |
|
| S01nmbd | File | 1.26 KB | 0755 |
|
| S01ntpsec | File | 1.87 KB | 0755 |
|
| S01plymouth | File | 1.35 KB | 0755 |
|
| S01pulseaudio-enable-autospawn | File | 469 B | 0644 |
|
| S01rsync | File | 4.31 KB | 0755 |
|
| S01samba-ad-dc | File | 1.61 KB | 0755 |
|
| S01saned | File | 2.17 KB | 0755 |
|
| S01smartmontools | File | 3.02 KB | 0644 |
|
| S01smbd | File | 1.59 KB | 0755 |
|
| S01ssh | File | 3.96 KB | 0755 |
|
| S01sudo | File | 1.13 KB | 0755 |
|
| S01tor | File | 5.93 KB | 0755 |
|
| S01triggerhappy | File | 3.14 KB | 0755 |
|
| S01vsftpd | File | 2.02 KB | 0755 |
|