HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: rc3.d shell
Operating System - HP-UX
1834346
Members
2220
Online
110066
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
Forums
Discussions
Discussions
Discussions
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
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-14-2008 12:50 AM
02-14-2008 12:50 AM
rc3.d shell
Hello
I have created startup shell (S99Start) in /sbin/rc3.d.
This shell simply calls another shell like below.
sh -c "$AGENTWORKS_DIR/CACustomise/uni_start.sh $1" > /dev/null 2>&1
exit 0
The called shell (uni_start.sh) is always terminated whenever rc3.d shell is finished.
Is this working as design?
And how can I avoid it?
(I can only think of nohup currently)
Thanks
I have created startup shell (S99Start) in /sbin/rc3.d.
This shell simply calls another shell like below.
sh -c "$AGENTWORKS_DIR/CACustomise/uni_start.sh $1" > /dev/null 2>&1
exit 0
The called shell (uni_start.sh) is always terminated whenever rc3.d shell is finished.
Is this working as design?
And how can I avoid it?
(I can only think of nohup currently)
Thanks
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2008 01:49 AM
02-14-2008 01:49 AM
Re: rc3.d shell
sh -c "$AGENTWORKS_DIR/CACustomise/uni_start.sh $1" > /dev/null 2>&1
Why are you doing "sh -c"? Why not just invoke the command:
$AGENTWORKS_DIR/CACustomise/uni_start.sh $1 ...
>The called shell (uni_start.sh) is always terminated whenever rc3.d shell is finished.
I assume you put uni_start.sh in the background?
>(I can only think of nohup currently)
There is that or you can demonize your process.
http://www.ddj.com/architect/184404033
Why are you doing "sh -c"? Why not just invoke the command:
$AGENTWORKS_DIR/CACustomise/uni_start.sh $1 ...
>The called shell (uni_start.sh) is always terminated whenever rc3.d shell is finished.
I assume you put uni_start.sh in the background?
>(I can only think of nohup currently)
There is that or you can demonize your process.
http://www.ddj.com/architect/184404033
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2008 02:21 AM
02-14-2008 02:21 AM
Re: rc3.d shell
Shalom,
Suggest:
$AGENTWORKS_DIR/CACustomise/uni_start.sh $1"
Become
${AGENTWORKS_DIR}/CACustomise/uni_start.sh ${1}"
SEP
Suggest:
$AGENTWORKS_DIR/CACustomise/uni_start.sh $1"
Become
${AGENTWORKS_DIR}/CACustomise/uni_start.sh ${1}"
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2008 11:23 AM
02-15-2008 11:23 AM
Re: rc3.d shell
Actually, if coded as above (not nohup, no &), the calling shell (S99....) is waiting for the called shell (uni_start.sh) to finish before it procedes.
my guess is its working as you want to, even tho the "sh -c" is superfluous.
You would need to examine uni_start.sh to see what it starts and if it/they are all running.
fwiw: start / stop scripts should be S(or K) followed by 3 digits, with the numbers adding to 1000 so the correct start / stop order is preserved
my guess is its working as you want to, even tho the "sh -c" is superfluous.
You would need to examine uni_start.sh to see what it starts and if it/they are all running.
fwiw: start / stop scripts should be S(or K) followed by 3 digits, with the numbers adding to 1000 so the correct start / stop order is preserved
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP