| Server IP : 95.46.96.79 / Your IP : 216.73.216.84 Web Server : Apache/2.4.41 (Ubuntu) System : Linux zaimer.uz 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : akslabs_uz_usr ( 1001) PHP Version : 7.4.3-4ubuntu2.29 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 | Sudo : ON | Pkexec : ON Directory : /etc/rc5.d/ |
Upload File : |
#!/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