b374k
m1n1 1.01
Apache/2.2.15 (CentOS)
Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64
uid=48(apache) gid=48(apache) groups=48(apache)
server ip : 172.67.192.52 | your ip : 10.244.126.0
safemode OFF
 >  / etc / rc.d / init.d /
Filename/etc/rc.d/init.d/single
Size647
Permissionrwxr-xr-x
Ownerapache
Create time23-Dec-2025 17:41
Last modified27-Apr-2018 16:28
Last accessed21-Apr-2026 21:08
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
#!/bin/bash
#
#
# rc.single This file is executed by init when it goes into runlevel
# 1, which is the administrative state. It kills all
# deamons and then puts the system into single user mode.
# Note that the file systems are kept mounted.
#
# Author: Miquel van Smoorenburg, <[email protected]>
# Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S