08-20-2001
There is a directory call /etc .
In a subdirectory there is another directory, something like rc or rc.d or something to that effect.
This are the scripts you are looking for.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
log files for startup for AIX is /etc/rc.log.old
how about for hpux and solaris? (1 Reply)
Discussion started by: yls177
1 Replies
2. AIX
Hi Every Body, I want to know which files are read by the system during startup (initialization files) & in which order they are read? (2 Replies)
Discussion started by: aldowsary
2 Replies
3. SuSE
Hi Everybody
I am totally new to Linux.
We are using Suse Linux version 9.
Currently we have 4 to 5 shell scripts which needs to be executed manually by the users.I want these scripts to be run automatically when system starts...something like system startup service.
When system is... (1 Reply)
Discussion started by: appleforme1415
1 Replies
4. UNIX for Dummies Questions & Answers
hello,
i want to know how to initialize a file to an empty one in korn shell scripting? i'm using a file name and building it during a while loop using >>. The problem occurs when the file is not empty before reaching the while loop. therefore, i want to initialize it before the loop to get... (6 Replies)
Discussion started by: alrinno
6 Replies
5. Shell Programming and Scripting
hi everyone...
we have to run any python file e.g. show.py at startup..i.e. when OS starts it runs automatically.
we are proceeding this way,
writing a startup script named forfyp2 ,pasting it in init.d , making it exe using chmod , creating startup links using update-rc.d forfyp2 defaults.... (1 Reply)
Discussion started by: sarosh
1 Replies
6. UNIX for Dummies Questions & Answers
I was going through a server hardening manual.
At some interval it was mentioned that there should not be any alias for commands defined in roots startup files .
How would i check it? (3 Replies)
Discussion started by: pinga123
3 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
Can some one pls explain the order in which the startup files are run?
For Bourne shell .profile is run., But what other startup files are present?
When is the .aliases file called. (4 Replies)
Discussion started by: gsrikanth99
4 Replies
8. Shell Programming and Scripting
Hi, I am running a script which produces a number of intermediate output files for each time step. is there a way to remove these intermediate files and just retain the final output at every end of the loop, like sort of an initialization process? this the inefficient way i do it.
for i in... (3 Replies)
Discussion started by: ida1215
3 Replies
9. Shell Programming and Scripting
I copied the script from an AskUbuntu post -
#!/bin/bash
### BEGIN INIT INFO
# Provides: tomcat7
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start/Stop Tomcat server
### END INIT INFO
... (14 Replies)
Discussion started by: Hijanoqu
14 Replies
LEARN ABOUT CENTOS
poweroff
HALT(8) halt HALT(8)
NAME
halt, poweroff, reboot - Halt, power-off or reboot the machine
SYNOPSIS
halt [OPTIONS...]
poweroff [OPTIONS...]
reboot [OPTIONS...]
DESCRIPTION
halt, poweroff, reboot may be used to halt, power-off or reboot the machine.
OPTIONS
The following options are understood:
--help
Prints a short help text and exits.
--halt
Halt the machine, regardless of which one of the three commands is invoked.
-p, --poweroff
Power-off the machine, regardless of which one of the three commands is invoked.
--reboot
Reboot the machine, regardless of which one of the three commands is invoked.
-f, --force
Force immediate halt, power-off, reboot. Do not contact the init system.
-w, --wtmp-only
Only write wtmp shutdown entry, do not actually halt, power-off, reboot.
-d, --no-wtmp
Do not write wtmp shutdown entry.
--no-wall
Do not send wall message before halt, power-off, reboot.
EXIT STATUS
On success, 0 is returned, a non-zero failure code otherwise.
NOTES
These are legacy commands available for compatibility only.
SEE ALSO
systemd(1), systemctl(1), shutdown(8), wall(1)
systemd 208 HALT(8)