01-09-2004
bootup script
Hello there
I need to run a script whenever i reboot or startup my HP-UX server. This script adds some routes to the route table, and it start third party aplications like "Star Manager".
I thought i could do this simply putting the script in "/sbin/init.d,
and a link to the script in "/sbin/rc2.d" using this command:
ls -s /sbin/init.d/myscript S999myscript
Then i have created a reference to "/etc/rc.config.d/myscript"
using in the file , "MYSCRIPT=1", wich means it's to run.
But, simply just doesn't work.
What am i doing rong?
Thanks for any help
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi guys,
May I know how to install Solaris 8 in the way that I can triple boot it with my the other two OS: WIndows ME and Windows 2000 Pro.
Can you all please kindly advise me on how to setup the triple boot process inorder to allow Windows ME to be the default OS when being ask to choose... (1 Reply)
Discussion started by: cia
1 Replies
2. UNIX for Dummies Questions & Answers
Hi all
The following error was displayed when a sco server (5.0.5) was booted. What should be done to overcome the problem. Replies appreciated.
Bios 03.0
0130688 KB memory good
01 processor(s) in system
remote console dialing on, please wait
connect fail : modem off
cpu clock... (6 Replies)
Discussion started by: raguramtgr
6 Replies
3. UNIX for Dummies Questions & Answers
Evry time I start up my mavhine ,have to type in unix at
Boot
:
Is there a way unix should bootup automatically?
Asif (2 Replies)
Discussion started by: asif iqbal
2 Replies
4. AIX
Hi i installed ssh of version v 1.21 and my AIX is of 5.3.
I want to start my ssh deamon at the startup
can any one please help me out reg..
Thanks in advance.. (1 Reply)
Discussion started by: kmalla
1 Replies
5. AIX
Issue: AIX server freezes on bootup.
Server AIX ver 4.3.3.0
When the AIX server reboots it negotiates NIS. During startup of NFS, customer gets one or more of the following error messages:
0513-056 Timeout waiting for command response. If you specified a foreign host, see the /etc/inittab file... (1 Reply)
Discussion started by: srzaman1
1 Replies
6. 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
7. AIX
Hi,
I've got a recent problem with 2 file systems on an AIX 5.3 server. The fs's are marked to auto mount at startup and do show as being mounted after a a restart however if you cd to the mount point and 'df -g .' it shows the fs hasn't actually mounted.
$ mount |grep SQLT0001.0
... (2 Replies)
Discussion started by: m223464
2 Replies
8. UNIX for Dummies Questions & Answers
What is the boot up sequence in UNIX? (2 Replies)
Discussion started by: karthi_g
2 Replies
9. Linux
Hello all,
I have a script callled 'ABCstartup' setup under /etc/rc.d/init.d
Softlink 'S91ABCstartup' pointing to above script has been created under /etc/rc.d/rc3.d
The script is not being executed when the server restarts.
The script runs successfully via manual execution:... (5 Replies)
Discussion started by: hemangjani
5 Replies
10. SCO
I have a known good external SCSI HD running SCO UNIX OpenServer 5.0.7. I decided that I wanted to be able to run this drive on another computer, so I bought the same SCSI card as before (LSI) and then attempted to boot on the other system. The bootup process hung with the error F painit. I've... (13 Replies)
Discussion started by: Transpower
13 Replies
LEARN ABOUT CENTOS
service
service(8) System Manager's Manual service(8)
NAME
service - run a System V init script
SYNOPSIS
service SCRIPT COMMAND [OPTIONS]
service --status-all
service --help | -h | --version
DESCRIPTION
service runs a System V init script in as predictable environment as possible, removing most environment variables and with current working
directory set to /.
The SCRIPT parameter specifies a System V init script, located in /etc/init.d/SCRIPT. The supported values of COMMAND depend on the
invoked script, service passes COMMAND and OPTIONS it to the init script unmodified. All scripts should support at least the start and
stop commands. As a special case, if COMMAND is --full-restart, the script is run twice, first with the stop command, then with the start
command.
service --status-all runs all init scripts, in alphabetical order, with the status command.
If the init script file does not exist, the script tries to use legacy actions. If there is no suitable legacy action found and COMMAND is
one of actions specified in LSB Core Specification, input is redirected to the systemctl. Otherwise the command fails with return code 2.
FILES
/etc/init.d
The directory containing System V init scripts.
ENVIRONMENT
LANG, TERM
The only environment variables passed to the init scripts.
SEE ALSO
chkconfig(8), ntsysv(8), systemd(1), systemctl(8), systemd.service(5)
Jan 2006 service(8)