- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: init.rc script fails because tty detach
Operating System - Linux
1756704
Members
2447
Online
108852
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
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
тАО07-18-2005 05:58 AM
тАО07-18-2005 05:58 AM
Re: init.rc script fails because tty detach
Burslan,
You are exactly right.
But that does not work to "demonize" the mwm process in the system startup.
Do you have any other catch on it???
You are exactly right.
But that does not work to "demonize" the mwm process in the system startup.
Do you have any other catch on it???
Leave with out tense and try best you gets result
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2005 06:52 AM
тАО07-18-2005 06:52 AM
Re: init.rc script fails because tty detach
To the best that I know daemons are written, compiled and linked to be daemons. You can not just expect any executable to be run as a daemon in the full meaning of it. nohup and running it in the background as a detached process is the best thing you can do without re-writing the whole program yourself.
Some programs have the option of running themselves ad daemons, like sendmail, with proper command switches but a quick glance over mwm does not show anything close to this.
Also, running a process in the background, doing whatever you are expecting from it to do, is not much different than the actual daemon functionality, maybe with a bit of extra overhead due to shell handling etc. What else are you after by runnig it as a *true* daemon ?
Some programs have the option of running themselves ad daemons, like sendmail, with proper command switches but a quick glance over mwm does not show anything close to this.
Also, running a process in the background, doing whatever you are expecting from it to do, is not much different than the actual daemon functionality, maybe with a bit of extra overhead due to shell handling etc. What else are you after by runnig it as a *true* daemon ?
________________________________
UNIX because I majored in cryptology...
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2005 09:19 AM
тАО07-18-2005 09:19 AM
Solution
If you must daemonize a process using a scripting language then Perl is your best bet. It lets you use setsid() to detach the process from a controlling terminal. Try the attached Perl script and make your changes in the "exec" function. The idea is that the process forks() then the parent is allowed to exit; the child then sets up any signal handlers and does an exec(). It's also a good idea for all daemons to to a cd to / so that umounts won't fail with "device busy".
If it ain't broke, I can fix that.
- Tags:
- daemon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2005 12:28 AM
тАО07-19-2005 12:28 AM
Re: init.rc script fails because tty detach
All,
Finally the the story end successfully!!!
Special thanks to Stephenson for wonderful perl script.
Thanks & Best Regards
Manoj
Finally the the story end successfully!!!
Special thanks to Stephenson for wonderful perl script.
Thanks & Best Regards
Manoj
Leave with out tense and try best you gets result
- « Previous
-
- 1
- 2
- Next »
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