#0x2525
Linux debian-2gb-nbg1 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64
  SOFT : Apache/2.4.62 (Debian) PHP : 8.2.28
/lib/init/
162.55.61.15

 
[ NAME ] [ SIZE ] [ PERM ] [ DATE ] [ ACT ]
+FILE +DIR
init-d-script 6.615 KB -rwxr-xr-x 2023-04-03 06:25 R E G D
vars.sh 1.184 KB -rw-r--r-- 2023-04-03 06:25 R E G D
REQUEST EXIT
#!/bin/sh # See init-d-script(5) for instructions on how to use this library. #============================================================================= # Shift arguments early to fix #826214 __init_d_script_name="$1" shift # Define LSB log_* functions. # Depend on sysvinit-utils (>= 3.05-1) to ensure that this file is present # and status_of_proc is working. . /lib/lsb/init-functions # PATH should only include /usr/* if it runs after the mountnfs.sh # script. Scripts running before mountnfs.sh should remove the /usr/* # entries. PATH=/usr/sbin:/usr/bin:/sbin:/bin export PATH is_call_implemented() { PATH= command -V $1 >/dev/null 2>&1 } do_usage() { if is_call_implemented do_reload ; then echo "Usage: $SCRIPTNAME {start|stop|status|reload|restart|try-restart|force-reload}" >&2 else echo "Usage: $SCRIPTNAME {start|stop|status|restart|try-restart|force-reload}" >&2 fi } call() { cmd="$1" shift if is_call_implemented ${cmd}_override ; then ${cmd}_override "$@" else ${cmd} "$@" fi } # # Function that starts the daemon/service # do_start_cmd() { start-stop-daemon --start --quiet \ ${PIDFILE:+--pidfile "$PIDFILE"} \ ${COMMAND_NAME:+--name "$COMMAND_NAME"} \ ${DAEMON:+--exec "$DAEMON"} $START_ARGS -- $DAEMON_ARGS } do_start() { if is_call_implemented do_start_prepare ; then call do_start_prepare fi log_daemon_msg "Starting $DESC" "$NAME" call do_start_cmd retval=$? if [ "$retval" = 1 ] && [ no != "$VERBOSE" ] ; then log_progress_msg "is already running" fi retval=$(( $retval > 1 )) vlog_end_msg $retval if is_call_implemented do_start_cleanup ; then call do_start_cleanup fi return $retval } # # Function that stops the daemon/service # do_stop_cmd() { start-stop-daemon --stop --quiet \ --retry=TERM/0/CONT/30/KILL/5 \ ${PIDFILE:+--pidfile "$PIDFILE"} \ ${COMMAND_NAME:+--name "$COMMAND_NAME"} \ ${DAEMON:+--exec "$DAEMON"} $STOP_ARGS RETVAL="$?" [ "$RETVAL" = 2 ] && return 2 # Wait for children to finish too if this is a daemon that forks # and if the daemon is only ever run from this initscript. # If the above conditions are not satisfied then add some other code # that waits for the process to drop all resources that could be # needed by services started subsequently. A last resort is to