- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Rc start up scripts
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
04-04-2000 01:35 AM
04-04-2000 01:35 AM
Rc start up scripts
do not want the engine started by root. Is there a way I can get the sybase
DBA ID to execute the rc script file in run level 3?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2000 01:52 AM
04-04-2000 01:52 AM
Re: Rc start up scripts
informix -
I have an RC script that does the following:
su - informix -c "oninit"
The rc script itself is run as root, but the 'su' command runs the oninit
command as the informix user and my engine comes up with the informix uid
rather than root.
If starting up sybase involves a complicated script that can't cleanly be
placed into an su command, you should be able to execute the script directly
from su.
I'm assuming you know how to create the startup scripts and place links in
/sbin/rc#.d as appropriate. If you need help with that, let me know.
HTH
-Evan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2001 07:49 AM
08-06-2001 07:49 AM
Re: Rc start up scripts
if [ "`whoami`" != "
then
if [ "`whoami`" = "root" ]
then
su
exit $?
fi
else
echo "Only
fi
Hope it helps,
Gav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2001 08:34 AM
08-06-2001 08:34 AM
Re: Rc start up scripts
Using
su -
Thanks.
Prashant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2001 08:46 AM
08-06-2001 08:46 AM
Re: Rc start up scripts
Symbolic link it to /sbin/rc3.d/S999mydb.
Symbolic link it to /sbin/rc2.d/K001mydb also.
Be sure to follow the rules of "rc" scripts (have a start,stop test within the script).
In the start portion, use the recommendation by Mr Evans.
-- Rod H
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2001 10:32 AM
08-06-2001 10:32 AM
Re: Rc start up scripts
Using the command :
su - sybaseDbaUser -c "commad -option arg0 ...argn"
Magdi