Adding a program in Startup
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Adding a program in Startup




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Adding a program in Startup  
Yogesh


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-26-04 03:11 PM

How to Add a program in Startup  ? so it it can start Automatically at
the start-up time .
I want to  create something similar to Service in Windows(My own),in
Solaris.
How can i do this (Using C Language)





[ Post a follow-up to this message ]



    Re: Adding a program in Startup  
Chuck Dillon


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-26-04 03:11 PM

Yogesh wrote:
> How to Add a program in Startup  ? so it it can start Automatically at
> the start-up time .
> I want to  create something similar to Service in Windows(My own),in
> Solaris.
> How can i do this (Using C Language)

See the man pages for init.d, inittab and inetd.conf

init.d describes the system startup process and how the startup scripts
are organized.  You can insert your own startup/shutdown script in one
of the run levels.

inittab describes a higher level startup mechanism driven by the table
/etc/inittab.  Entries in that table describe processes to be run by
the system.  This is pretty analogous to MS-Windows services.

inetd.conf is for network services.  If your "service" services socket
connections you might want to configure it to work via inetd.

You also might want to do some reading at docs.sun.com.  The admin
manuals might be of more help than the man pages.

HTH,

-- ced

--
Chuck Dillon
Senior Software Engineer
NimbleGen Systems Inc.





[ Post a follow-up to this message ]



    Re: Adding a program in Startup  
David Logan


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-26-04 03:11 PM

Yogesh wrote:
> How to Add a program in Startup  ? so it it can start Automatically at
> the start-up time .
> I want to  create something similar to Service in Windows(My own),in
> Solaris.
> How can i do this (Using C Language)


Typically you add it to rc.local (or some form thereof.) Look in
/etc/rc.d or its equivalent, depending on which *nix you are running.

David Logan





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:45 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register