OXIESEC PANEL
- Current Dir:
/
/
snap
/
core
/
17210
/
etc
/
init.d
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/02/2024 07:52:55 PM
rwxr-xr-x
📄
.depend.boot
959 bytes
10/02/2024 07:50:50 PM
rw-r--r--
📄
.depend.start
386 bytes
10/02/2024 07:50:50 PM
rw-r--r--
📄
.depend.stop
411 bytes
10/02/2024 07:50:50 PM
rw-r--r--
📄
README
2.37 KB
01/19/2016 06:33:50 PM
rw-r--r--
📄
apparmor
6.08 KB
03/03/2017 10:52:31 PM
rwxr-xr-x
📄
bootmisc.sh
1.25 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
📄
cgmanager
3.48 KB
09/14/2015 10:15:39 PM
rwxr-xr-x
📄
cgproxy
3.28 KB
09/14/2015 10:15:39 PM
rwxr-xr-x
📄
checkfs.sh
3.72 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
📄
checkroot-bootclean.sh
1.07 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
📄
checkroot.sh
9.13 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
📄
console-setup
1.31 KB
04/04/2016 05:41:49 PM
rwxr-xr-x
📄
cron
2.98 KB
05/10/2022 10:15:22 PM
rwxr-xr-x
📄
dbus
2.75 KB
10/07/2019 11:29:04 AM
rwxr-xr-x
📄
halt
1.3 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
📄
hostname.sh
1.39 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
📄
hwclock.sh
3.72 KB
03/12/2016 03:14:57 PM
rwxr-xr-x
📄
keyboard-setup
1.76 KB
04/04/2016 05:41:49 PM
rwxr-xr-x
📄
killprocs
1.27 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
📄
kmod
2.04 KB
11/12/2018 09:55:37 PM
rwxr-xr-x
📄
mountall-bootclean.sh
703 bytes
01/19/2016 06:33:50 PM
rwxr-xr-x
📄
mountall.sh
2.25 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
📄
mountdevsubfs.sh
1.43 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
📄
mountkernfs.sh
1.53 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
📄
mountnfs-bootclean.sh
711 bytes
01/19/2016 06:33:51 PM
rwxr-xr-x
📄
mountnfs.sh
2.4 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
📄
networking
4.66 KB
11/30/2016 05:16:19 PM
rwxr-xr-x
📄
ondemand
1.54 KB
10/16/2015 02:45:22 AM
rwxr-xr-x
📄
pppd-dns
612 bytes
01/27/2016 04:19:52 PM
rwxr-xr-x
📄
procps
1.16 KB
09/06/2015 05:30:20 AM
rwxr-xr-x
📄
rc
6.22 KB
01/19/2016 06:33:50 PM
rwxr-xr-x
📄
rc.local
820 bytes
01/19/2016 06:33:51 PM
rwxr-xr-x
📄
rcS
117 bytes
01/19/2016 06:33:50 PM
rwxr-xr-x
📄
reboot
661 bytes
01/19/2016 06:33:51 PM
rwxr-xr-x
📄
resolvconf
4.05 KB
11/29/2017 06:26:46 PM
rwxr-xr-x
📄
rsyslog
2.73 KB
02/03/2016 10:54:29 AM
rwxr-xr-x
📄
sendsigs
3.83 KB
01/19/2016 06:33:50 PM
rwxr-xr-x
📄
single
597 bytes
01/19/2016 06:33:50 PM
rwxr-xr-x
📄
skeleton
1.06 KB
01/19/2016 06:33:51 PM
rw-r--r--
📄
ssh
3.98 KB
05/13/2020 02:12:28 PM
rwxr-xr-x
📄
ubuntu-fan
1.2 KB
10/28/2016 03:24:40 PM
rwxr-xr-x
📄
udev
5.94 KB
04/02/2021 02:39:40 AM
rwxr-xr-x
📄
umountfs
2.67 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
📄
umountnfs.sh
2.15 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
📄
umountroot
1.83 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
📄
urandom
3.04 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
Editing: rc
Close
#! /bin/sh # # rc # # Starts/stops services on runlevel changes. # # Optimization: A start script is not run when the service was already # configured to run in the previous runlevel. A stop script is not run # when the the service was already configured not to run in the previous # runlevel. # # Authors: # Miquel van Smoorenburg <miquels@cistron.nl> # Bruce Perens <Bruce@Pixar.com> PATH=/sbin:/usr/sbin:/bin:/usr/bin export PATH # Un-comment the following for interactive debugging. Do not un-comment # this for debugging a real boot process as no scripts will be executed. # debug=echo # Make sure the name survive changing the argument list scriptname="$0" umask 022 on_exit() { echo "error: '$scriptname' exited outside the expected code flow." } trap on_exit EXIT # Enable emergency handler # Ignore CTRL-C only in this shell, so we can interrupt subprocesses. trap ":" INT QUIT TSTP # Set onlcr to avoid staircase effect. stty onlcr 0>&1 # Now find out what the current and what the previous runlevel are. runlevel=$RUNLEVEL # Get first argument. Set new runlevel to this argument. [ "$1" != "" ] && runlevel=$1 if [ "$runlevel" = "" ] then echo "Usage: $scriptname <runlevel>" >&2 exit 1 fi previous=$PREVLEVEL [ "$previous" = "" ] && previous=N export runlevel previous if [ -f /etc/default/rcS ] ; then . /etc/default/rcS fi export VERBOSE if [ -f /lib/lsb/init-functions ] ; then . /lib/lsb/init-functions else log_action_msg() { echo $@; } log_failure_msg() { echo $@; } log_warning_msg() { echo $@; } fi # # Check if we are able to use make like booting. It require the # insserv package to be enabled. Boot concurrency also requires # startpar to be installed. # #CONCURRENCY=makefile # disable startpar, incompatible with "task" upstart jobs CONCURRENCY=none test -s /etc/init.d/.depend.boot || CONCURRENCY="none" test -s /etc/init.d/.depend.start || CONCURRENCY="none" test -s /etc/init.d/.depend.stop || CONCURRENCY="none" if test -e /etc/init.d/.legacy-bootordering ; then CONCURRENCY="none" fi if ! test -e /proc/stat; then # startpar requires /proc/stat if [ "$(uname)" = "GNU/kFreeBSD" ] ; then mount -t linprocfs linprocfs /proc elif [ "$(uname)" = "GNU" ] ; then mount -t proc none /proc fi fi if [ -x /lib/startpar/startpar ] ; then STARTPAR=/lib/startpar/startpar else STARTPAR=startpar fi $STARTPAR -v > /dev/null 2>&1 || CONCURRENCY="none" # # Start script or program. # case "$CONCURRENCY" in makefile|startpar|shell) # startpar and shell are obsolete CONCURRENCY=makefile log_action_msg "Using makefile-style concurrent boot in runlevel $runlevel" startup() { eval "$($STARTPAR -p 4 -t 20 -T 3 -M $1 -P $previous -R $runlevel)" if [ -n "$failed_service" ] then log_failure_msg "startpar: service(s) returned failure: $failed_service" fi if [ -n "$skipped_service_not_installed" ] then log_warning_msg "startpar: service(s) skipped, program is not installed: $skipped_service_not_installed" fi if [ -n "$skipped_service_not_configured" ] then log_warning_msg "startpar: service(s) skipped, program is not configured: $skipped_service_not_configured" fi unset failed_service skipped_service_not_installed skipped_service_not_configured } ;; none|*) startup() { action=$1 shift scripts="$@" for script in $scripts ; do $debug "$script" $action done } ;; esac # Is there an rc directory for this new runlevel? if [ -d /etc/rc$runlevel.d ] then case "$runlevel" in 0|6) ACTION=stop ;; S) ACTION=start ;; *) ACTION=start ;; esac # First, run the KILL scripts. if [ makefile = "$CONCURRENCY" ] then if [ "$ACTION" = "start" ] && [ "$previous" != N ] then startup stop fi elif [ "$previous" != N ] then # Run all scripts with the same level in parallel CURLEVEL="" for s in /etc/rc$runlevel.d/K* do # Extract order value from symlink level=${s#/etc/rc$runlevel.d/K} level=${level%%[a-zA-Z]*} if [ "$level" = "$CURLEVEL" ] then continue fi CURLEVEL=$level SCRIPTS="" for i in /etc/rc$runlevel.d/K$level* do # Check if the script is there. [ ! -f $i ] && continue # # Find stop script in previous runlevel but # no start script there. # suffix=${i#/etc/rc$runlevel.d/K[0-9][0-9]} previous_stop=/etc/rc$previous.d/K[0-9][0-9]$suffix previous_start=/etc/rc$previous.d/S[0-9][0-9]$suffix # # If there is a stop script in the previous level # and _no_ start script there, we don't # have to re-stop the service. # [ -f $previous_stop ] && [ ! -f $previous_start ] && continue # Stop the service. SCRIPTS="$SCRIPTS $i" done startup stop $SCRIPTS done fi if [ makefile = "$CONCURRENCY" ] then if [ S = "$runlevel" ] then startup boot else startup $ACTION fi else # Now run the START scripts for this runlevel. # Run all scripts with the same level in parallel CURLEVEL="" for s in /etc/rc$runlevel.d/S* do # Extract order value from symlink level=${s#/etc/rc$runlevel.d/S} level=${level%%[a-zA-Z]*} if [ "$level" = "$CURLEVEL" ] then continue fi CURLEVEL=$level SCRIPTS="" for i in /etc/rc$runlevel.d/S$level* do [ ! -f $i ] && continue suffix=${i#/etc/rc$runlevel.d/S[0-9][0-9]} if [ "$previous" != N ] then # # Find start script in previous runlevel and # stop script in this runlevel. # stop=/etc/rc$runlevel.d/K[0-9][0-9]$suffix previous_start=/etc/rc$previous.d/S[0-9][0-9]$suffix # # If there is a start script in the previous level # and _no_ stop script in this level, we don't # have to re-start the service. # if [ start = "$ACTION" ] ; then [ -f $previous_start ] && [ ! -f $stop ] && continue else # Workaround for the special # handling of runlevels 0 and 6. previous_stop=/etc/rc$previous.d/K[0-9][0-9]$suffix # # If there is a stop script in the previous level # and _no_ start script there, we don't # have to re-stop the service. # [ -f $previous_stop ] && [ ! -f $previous_start ] && continue fi fi SCRIPTS="$SCRIPTS $i" done startup $ACTION $SCRIPTS done fi fi trap - EXIT # Disable emergency handler exit 0