- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: startup script
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
06-24-2004 09:27 PM
06-24-2004 09:27 PM
startup script
In a startup script, can we launch a command in background.
$PATH/process &
Regards,
Mario.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 09:30 PM
06-24-2004 09:30 PM
Re: startup script
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 09:30 PM
06-24-2004 09:30 PM
Re: startup script
You can do that. Add the command in the rc scripts in /sbin/rc[0 1 2 3].d
manish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 09:34 PM
06-24-2004 09:34 PM
Re: startup script
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 09:37 PM
06-24-2004 09:37 PM
Re: startup script
yep, in general you can do it.
Anyway two questions sting my curiosity:
1. why do you want to insert a process in a startup script?
2. what is the process?
Anyway it is dangerous to modify startup scripts of the system, as long as you have a your customized startup script under /sbin/init.d.
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 10:19 PM
06-24-2004 10:19 PM
Re: startup script
The process is Patrol, and I am asking this because the init script is not working when the system is rebooted although it works perfectly if I execute it when the system is up.
Regards,
Mario.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 10:24 PM
06-24-2004 10:24 PM
Re: startup script
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2004 10:48 PM
06-24-2004 10:48 PM
Re: startup script
You can do that and check it in /etc/rc.log
br Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2004 02:38 AM
06-25-2004 02:38 AM
Re: startup script
as Jan said you can see /etc/rc.log in order to know what's going on init script.
That can help you.
Please let us know if you solve the problem. It can be useful for future reference. And, not for last, please don't forget to assign points for guys that helped you.
Thanks for your collaboration.
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2004 09:32 AM
06-27-2004 09:32 AM
Re: startup script
I have some startup scripts that launch background processes and then exit. I found that they didn't always execute properly. What worked for me was to nohup the process, e.g.
nohup ${PATH}/process &
This sends all its output to the rc.log file so you may want to consider:
nohup ${PATH}/process >$out_file 2>&1 &
Mike