HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Problem with startscript in boot mode
Operating System - Linux
1828207
Members
2165
Online
109975
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
Go to solution
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
08-23-2007 08:00 PM
08-23-2007 08:00 PM
Hello.
I have following problem with starting binary program during boot proces.
Sorry that I can not send detailed information of biary but I will try to describe generally the issue in example:
Prerequisites:
Manually binary should be fired from command line by common user - lets call him user.
So I need to login as root and do:
su - user
nohup /whole/path/to/bin/binary_program &
exit
It works fine. I can logout and binary is run anyway.
I have tried with different configurations and finally I tested manually following setting that works when fired from command line.
So I did:
1. In /sbin/rc4.d/ I created S888binary_program symlink to
/sbin/init.d/binary_program
2.Inside /sbin/init.d/binary_program
I put following two lines:
/usr/bin/su - user -c "/home/user/binary_program.sh " >> /dev/null
exit 0
3.File /home/user/binary_program.sh contains:
nohup /whole/path/to/bin/binary_program &
exit 0
When go to /sbin/rc4.d/ and I run
./S888binary_program
I starts the program as expected.
But after reboot process I can not see it as started.
How I can debug this problem?
Maybe it is related to binary itself?
I will try to examine this with more simple program yet but maybe someone would have an idea what can be wrong.
I have following problem with starting binary program during boot proces.
Sorry that I can not send detailed information of biary but I will try to describe generally the issue in example:
Prerequisites:
Manually binary should be fired from command line by common user - lets call him user.
So I need to login as root and do:
su - user
nohup /whole/path/to/bin/binary_program &
exit
It works fine. I can logout and binary is run anyway.
I have tried with different configurations and finally I tested manually following setting that works when fired from command line.
So I did:
1. In /sbin/rc4.d/ I created S888binary_program symlink to
/sbin/init.d/binary_program
2.Inside /sbin/init.d/binary_program
I put following two lines:
/usr/bin/su - user -c "/home/user/binary_program.sh " >> /dev/null
exit 0
3.File /home/user/binary_program.sh contains:
nohup /whole/path/to/bin/binary_program &
exit 0
When go to /sbin/rc4.d/ and I run
./S888binary_program
I starts the program as expected.
But after reboot process I can not see it as started.
How I can debug this problem?
Maybe it is related to binary itself?
I will try to examine this with more simple program yet but maybe someone would have an idea what can be wrong.
Solved! Go to Solution.
- Tags:
- rc(1M)
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2007 09:02 PM
08-23-2007 09:02 PM
Solution
Well, did you demonize it?
Can you print the PID when you do nohup? Is there a nohup.out file?
It would help if you didn't send the su - user output to /dev/null.
You may have to use tusc:
nohup tusc -fp -o tusc.out /whole/path/to/bin/binary_program &
Can you print the PID when you do nohup? Is there a nohup.out file?
It would help if you didn't send the su - user output to /dev/null.
You may have to use tusc:
nohup tusc -fp -o tusc.out /whole/path/to/bin/binary_program &
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2007 09:10 PM
08-23-2007 09:10 PM
Re: Problem with startscript in boot mode
I think the problem was in /etc/inittab
default initdefault was 3 instead of 4.
I will test it now
default initdefault was 3 instead of 4.
I will test it now
- Tags:
- inittab
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
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP