- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- server startup script
Operating System - Linux
1753550
Members
5359
Online
108795
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-17-2010 10:25 PM
тАО02-17-2010 10:25 PM
server startup script
I have newly installed Redhat v4 , it works fine , I want the server run some scripts after re-start , I tried to add the script to /etc/rc.local and also tried to add it to /etc/inittab , but it is not work , the script do not run after re-start the server , can advise what is wrong ? thx in advance.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-17-2010 10:43 PM
тАО02-17-2010 10:43 PM
Re: server startup script
Hello,
You should add you script in rc.local
Be sure that your script is working before adding it to rc.local (check chmod +x, check to specify in the first line the shell used in the script: #!/bin/sh or whatever shell you use there ...).
Horia.
You should add you script in rc.local
Be sure that your script is working before adding it to rc.local (check chmod +x, check to specify in the first line the shell used in the script: #!/bin/sh or whatever shell you use there ...).
Horia.
Best regards from Romania,
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2010 12:17 AM
тАО02-18-2010 12:17 AM
Re: server startup script
Hi,
have a look at chkconfig(8) man page, and especially at "RUNLEVEL FILES" section.
Also have a look at service(8).
Then put your script into /etc/rc.d/init.d and create runlevel-links with
# chkconfig -a scriptname
Now your script is starting at boottime....
rgds
HGH
have a look at chkconfig(8) man page, and especially at "RUNLEVEL FILES" section.
Also have a look at service(8).
Then put your script into /etc/rc.d/init.d and create runlevel-links with
# chkconfig -a scriptname
Now your script is starting at boottime....
rgds
HGH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2010 11:35 AM
тАО02-23-2010 11:35 AM
Re: server startup script
Hi
you can try put the script in /etc/init.d.
then add the following 2 lines after the shell executable #! line.
# chkconfig: 345 90 10
# description:
** The chkconfig says the script will run in runlevel 3, 4 and 5 followed by the start and stop priority level no.
//next run
chkconfig --list |grep <script name>
to check the runlevels of the script.
//then run
chkconfig --level 345 <script name> on
so that the script will be ran at runlevel 3, 4 and 5
you can try put the script in /etc/init.d.
then add the following 2 lines after the shell executable #! line.
# chkconfig: 345 90 10
# description:
** The chkconfig says the script will run in runlevel 3, 4 and 5 followed by the start and stop priority level no.
//next run
chkconfig --list |grep <script name>
to check the runlevels of the script.
//then run
chkconfig --level 345 <script name> on
so that the script will be ran at runlevel 3, 4 and 5
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP