403Webshell
Server IP : 173.236.223.38  /  Your IP : 216.73.216.33
Web Server : Apache
System : Linux vps62975 6.8.0-83-generic #83~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Sep 9 18:19:47 UTC 2 x86_64
User : invmicvps ( 6727287)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/courier/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/courier/init-d-script-courier
#!/bin/sh

do_tmpfiles() {
    local type path mode user group

    TMPFILES=/usr/lib/tmpfiles.d/$1.conf

    if [ -r "$TMPFILES" ]; then
	while read type path mode user group age argument; do
            if [ "$type" = "d" ]; then
                mkdir -p "$path"
		chmod "$mode" "$path"
                chown "$user:$group" "$path"
            fi
        done < $TMPFILES
    fi
}

do_start_prepare() {
    do_tmpfiles $(basename $0)
}

do_start_cmd_override() {
    if [ "$DO_START" != "yes" ]; then
	# If the service is disabled, the start script still needs to signal
	# successful, otherwise postinst scripts barf.  This behavior matches
	# that passing the --oknodo flag to start-stop-daemon.
	return 0
    fi

    if pidofproc ${PIDFILE:+-p ${PIDFILE}} "$DAEMON" >/dev/null; then
	# Similar for process already running: a subsequent call to start the
	# service must not return an error.
	return 0
    fi

    if $DAEMON start $DAEMON_ARGS; then
	return 0
    else
	return 2
    fi
}

do_stop_cmd_override() {
    if ! pidofproc ${PIDFILE:+-p ${PIDFILE}} "$DAEMON" >/dev/null; then
	# If the service is not currently running, a call to stop it should
	# indicate success.
	return 0
    fi

    if $DAEMON stop $DAEMON_ARGS; then
	return 0;
    else
	return 2;
    fi
}

do_status_override() {
    status_of_proc ${PIDFILE:+-p ${PIDFILE}} "$DAEMON" "$NAME"
}

Youez - 2016 - github.com/yon3zu
LinuXploit