403Webshell
Server IP : 103.75.185.95  /  Your IP : 216.73.217.162
Web Server : nginx/1.30.0
System : Linux cs-linux-20260509085757017 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
User : cuuhootoxema ( 1215)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /etc/rc2.d/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /etc/rc2.d/S01fastpanel2
#!/bin/sh
### BEGIN INIT INFO
# Provides:          FASTPANEL
# Required-Start:    $local_fs $network $syslog
# Required-Stop:     $local_fs $network $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Description:       FASTPANEL
### END INIT INFO

PATH=/sbin:/usr/sbin:/bin:/usr/bin

NAME="fastpanel2"
DESC="FASTPANEL"
DAEMON="/usr/local/fastpanel2/fastpanel"
DAEMON_ARGS=""
USER="fastuser"

PIDFILE=/var/run/fastpanel2.pid
LOGFILE=/var/log/fastpanel2/daemon.log

[ -x $DAEMON ] || exit 0

. /lib/init/vars.sh

. /lib/lsb/init-functions


do_start()
{
    if [ -f $PIDFILE ] && kill -0 $(cat $PIDFILE); then
        return 0
    fi

    start-stop-daemon --make-pidfile --pidfile $PIDFILE --background --chdir /usr/local/fastpanel2 --chuid $USER --start --quiet --exec $DAEMON -- $DAEMON_ARGS

    RETVAL="$?"
    return "$RETVAL"
}

do_stop()
{
    if [ ! -f "$PIDFILE" ]; then
        return 0
    fi
    start-stop-daemon --stop --quiet --pidfile $PIDFILE --signal KILL --oknodo
    RETVAL="$?"
    rm -f $PIDFILE
    return "$RETVAL"
}

case "$1" in
  start)
    log_daemon_msg "Starting $DESC " "$NAME"
    do_start
    case "$?" in
        0) log_end_msg 0 ;;
        *) log_end_msg 1 ;;
    esac
    ;;
  stop)
    log_daemon_msg "Stopping $DESC " $NAME
    do_stop
    case "$?" in
        0) log_end_msg 0 ;;
        *) log_end_msg 1 ;;
    esac
    ;;
  restart)
    log_daemon_msg "Restarting $DESC " $NAME
    do_stop
    case "$?" in
        0)
            do_start
            case "$?" in
                 0) log_end_msg 0 ;;
                 *) log_end_msg 1 ;;
            esac
            ;;
        2) log_end_msg 1 ;;
    esac
    ;;
  *)
    echo "Usage: $0 {start|stop|restart}"
    exit 3
    ;;
esac



Youez - 2016 - github.com/yon3zu
LinuXploit