01-15-2009
gold:/etc/init.d # ls -lrt /etc/init.d/foostart
-rwxrwxrwx 1 root root 143 2009-01-15 12:43 /etc/init.d/foostart
gold:/etc/init.d #
gold:/etc/init.d # ls -lrt /etc/init.d/rc3.d/S99*
lrwxrwxrwx 1 root root 20 2009-01-15 12:50 /etc/init.d/rc3.d/S99foostart -> /etc/init.d/foostart
gold:/etc/init.d #
7 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
Is there any runlevels in freebsd?
Like in linux or solaris?
Thanks
-I (2 Replies)
Discussion started by: Insomniac
2 Replies
2. Linux
Hi,
Is it possible to specify runlevel
from bootloader command line?
I would like to override settings from /etc/inittab
without changing it.
Thanks (2 Replies)
Discussion started by: odys
2 Replies
3. Linux
Can some exsplain to to me what runlevel 1-9 do?
I need to know. (5 Replies)
Discussion started by: Irish Jimmy
5 Replies
4. UNIX for Advanced & Expert Users
Is it possible to give multiple runlevel options during boot up.. When the Welcome screen appears, i want to give multiple runlevel options.. So the user can boot into any desired runlevel he wants.. Found this kinda interesting.. Any hints and solutions please? (2 Replies)
Discussion started by: srikumar_cs
2 Replies
5. Red Hat
hi all
i have to run a script in run level 1 automatically i.e when i give init 1 from runlevel 3 that script should run after entering into runlevel 1.
where can i put that script so that it will run as i said above..???
something similar to rc.local but this will run in runlevel 3(... (1 Reply)
Discussion started by: sagar_md
1 Replies
6. Solaris
hi all
i am using solaris 10 with run level 3.(Graphical Interface). I am a beginner to solaris so that i just want to do some R&D with my machine. I decided to boot into the command line interface, so i go througth the internet and find that the following command should be given to boot into the... (8 Replies)
Discussion started by: kingston
8 Replies
7. Programming
Hi,
I am trying with the following code to retrieve the runlevel of my Linux Ubuntu 8.04 system by reading the "utmp" database. But I am getting blank output. May I know what correction I should do inorder to make this program to work?
#include <stdio.h>
#include <stdlib.h>
#include... (1 Reply)
Discussion started by: royalibrahim
1 Replies
LEARN ABOUT DEBIAN
switch_root
SWITCH_ROOT(8) System Administration SWITCH_ROOT(8)
NAME
switch_root - switch to another filesystem as the root of the mount tree
SYNOPSIS
switch_root [-hV]
switch_root newroot init [arg...]
DESCRIPTION
switch_root moves already mounted /proc, /dev and /sys to newroot and makes newroot the new root filesystem and starts init process.
WARNING: switch_root removes recursively all files and directories on the current root filesystem.
OPTIONS
-h, --help
show help and exit
-V, --version
show version number and exit
RETURN VALUE
switch_root returns 0 on success and 1 on failure.
NOTES
switch_root will fail to function if newroot is not the root of a mount. If you want to switch root into a directory that does not meet
this requirement then you can first use a bind-mounting trick to turn any directory into a mount point:
mount --bind $DIR $DIR
SEE ALSO
mount(8) chroot(2) init(8) mkinitrd(8)
AUTHORS
Peter Jones <pjones@redhat.com>
Jeremy Katz <katzj@redhat.com>
Karel Zak <kzak@redhat.com>
AVAILABILITY
The switch_root command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
util-linux June 2009 SWITCH_ROOT(8)