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 ]
|