Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.173
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
etc /
rc2.d /
Delete
Unzip
Name
Size
Permission
Date
Action
K01apache-htcacheclean
2.43
KB
-rwxr-xr-x
2019-06-16 11:49
K01fail2ban
6.54
KB
-rwxr-xr-x
2017-04-17 16:27
K02nginx
4.47
KB
-rwxr-xr-x
2021-06-07 21:02
README
677
B
-rw-r--r--
2017-02-12 22:55
S01rsyslog
2.8
KB
-rwxr-xr-x
2017-01-18 23:14
S02anacron
1.97
KB
-rwxr-xr-x
2017-05-29 18:36
S02bacula-fd
2.63
KB
-rwxr-xr-x
2018-03-04 12:49
S02bind9
3.35
KB
-rwxr-xr-x
2018-01-15 22:40
S02clamav-daemon
9.34
KB
-rwxr-xr-x
2022-05-27 11:18
S02dbus
2.75
KB
-rwxr-xr-x
2017-10-01 13:09
S02irqbalance
2.39
KB
-rwxr-xr-x
2016-12-30 19:59
S02mdadm
2.59
KB
-rwxr-xr-x
2016-07-26 17:41
S02memcached
3.38
KB
-rwxr-xr-x
2018-06-03 11:37
S02ntp
1.52
KB
-rwxr-xr-x
2018-02-15 12:45
S02openbsd-inetd
2.39
KB
-rwxr-xr-x
2016-12-26 15:10
S02smartmontools
3.42
KB
-rwxr-xr-x
2016-07-30 19:10
S02snmpd
2.52
KB
-rwxr-xr-x
2018-10-09 10:45
S02ssh
3.94
KB
-rwxr-xr-x
2017-11-18 10:35
S03apache2
7.99
KB
-rwxr-xr-x
2019-06-16 11:49
S04clamav-freshclam
7.51
KB
-rwxr-xr-x
2022-05-27 11:18
S04cron
2.98
KB
-rwxr-xr-x
2015-05-03 15:25
S04mysql
5.79
KB
-rwxr-xr-x
2020-10-12 19:40
S04rsync
4.25
KB
-rwxr-xr-x
2017-12-10 13:57
S05dovecot
5.12
KB
-rwxr-xr-x
2020-08-14 18:28
S05exim4
6.6
KB
-rwxr-xr-x
2018-02-10 09:26
S05pure-ftpd
2.97
KB
-rwxr-xr-x
2016-12-08 13:28
S05pure-ftpd-mysql
2.98
KB
-rwxr-xr-x
2016-12-08 13:28
S06postfix
3.54
KB
-rwxr-xr-x
2020-02-16 20:53
Save
Rename
#!/bin/sh ### BEGIN INIT INFO # Provides: nginx # Required-Start: $local_fs $remote_fs $network $syslog $named # Required-Stop: $local_fs $remote_fs $network $syslog $named # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: starts the nginx web server # Description: starts nginx using start-stop-daemon ### END INIT INFO PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/nginx NAME=nginx DESC=nginx # Include nginx defaults if available if [ -r /etc/default/nginx ]; then . /etc/default/nginx fi STOP_SCHEDULE="${STOP_SCHEDULE:-QUIT/5/TERM/5/KILL/5}" test -x $DAEMON || exit 0 . /lib/init/vars.sh . /lib/lsb/init-functions # Try to extract nginx pidfile PID=$(cat /etc/nginx/nginx.conf | grep -Ev '^\s*#' | awk 'BEGIN { RS="[;{}]" } { if ($1 == "pid") print $2 }' | head -n1) if [ -z "$PID" ]; then PID=/run/nginx.pid fi if [ -n "$ULIMIT" ]; then # Set ulimit if it is set in /etc/default/nginx ulimit $ULIMIT fi start_nginx() { # Start the daemon/service # # Returns: # 0 if daemon has been started # 1 if daemon was already running # 2 if daemon could not be started start-stop-daemon --start --quiet --pidfile $PID --exec $DAEMON --test > /dev/null \ || return 1 start-stop-daemon --start --quiet --pidfile $PID --exec $DAEMON -- \ $DAEMON_OPTS 2>/dev/null \ || return 2 } test_config() { # Test the nginx configuration $DAEMON -t $DAEMON_OPTS >/dev/null 2>&1 } stop_nginx() { # Stops the daemon/service # # Return # 0 if daemon has been stopped # 1 if daemon was already stopped # 2 if daemon could not be stopped # other if a failure occurred start-stop-daemon --stop --quiet --retry=$STOP_SCHEDULE --pidfile $PID --name $NAME RETVAL="$?" sleep 1 return "$RETVAL" } reload_nginx() { # Function that sends a SIGHUP to the daemon/service start-stop-daemon --stop --signal HUP --quiet --pidfile $PID --name $NAME return 0 } rotate_logs() { # Rotate log files start-stop-daemon --stop --signal USR1 --quiet --pidfile $PID --name $NAME return 0 } upgrade_nginx() { # Online upgrade nginx executable # http://nginx.org/en/docs/control.html # # Return # 0 if nginx has been successfully upgraded # 1 if nginx is not running # 2 if the pid files were not created on time # 3 if the old master could not be killed if start-stop-daemon --stop --signal USR2 --quiet --pidfile $PID --name $NAME; then # Wait for both old and new master to write their pid file while [ ! -s "${PID}.oldbin" ] || [ ! -s "${PID}" ]; do cnt=`expr $cnt + 1` if [ $cnt -gt 10 ]; then return 2 fi sleep 1 done # Everything is ready, gracefully stop the old master if start-stop-daemon --stop --signal QUIT --quiet --pidfile "${PID}.oldbin" --name $NAME; then return 0 else return 3 fi else return 1 fi } case "$1" in start) log_daemon_msg "Starting $DESC" "$NAME" start_nginx case "$?" in 0|1) log_end_msg 0 ;; 2) log_end_msg 1 ;; esac ;; stop) log_daemon_msg "Stopping $DESC" "$NAME" stop_nginx case "$?" in 0|1) log_end_msg 0 ;; 2) log_end_msg 1 ;; esac ;; restart) log_daemon_msg "Restarting $DESC" "$NAME" # Check configuration before stopping nginx if ! test_config; then log_end_msg 1 # Configuration error exit $? fi stop_nginx case "$?" in 0|1) start_nginx case "$?" in 0) log_end_msg 0 ;; 1) log_end_msg 1 ;; # Old process is still running *) log_end_msg 1 ;; # Failed to start esac ;; *) # Failed to stop log_end_msg 1 ;; esac ;; reload|force-reload) log_daemon_msg "Reloading $DESC configuration" "$NAME" # Check configuration before stopping nginx # # This is not entirely correct since the on-disk nginx binary # may differ from the in-memory one, but that's not common. # We prefer to check the configuration and return an error # to the administrator. if ! test_config; then log_end_msg 1 # Configuration error exit $? fi reload_nginx log_end_msg $? ;; configtest|testconfig) log_daemon_msg "Testing $DESC configuration" test_config log_end_msg $? ;; status) status_of_proc -p $PID "$DAEMON" "$NAME" && exit 0 || exit $? ;; upgrade) log_daemon_msg "Upgrading binary" "$NAME" upgrade_nginx log_end_msg $? ;; rotate) log_daemon_msg "Re-opening $DESC log files" "$NAME" rotate_logs log_end_msg $? ;; *) echo "Usage: $NAME {start|stop|restart|reload|force-reload|status|configtest|rotate|upgrade}" >&2 exit 3 ;; esac