LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   AIX (https://www.linuxquestions.org/questions/aix-43/)
-   -   Q: how to start a service when system start (https://www.linuxquestions.org/questions/aix-43/q-how-to-start-a-service-when-system-start-715914/)

acerlinux 03-31-2009 07:37 PM

Q: how to start a service when system start
 
As topic, assume we have a service called "blahservice"

and we can start it by:

startsrc -s blahservice

what is the best practice to run such command when system start?

- directly use mkitab to add it into /etc/inittab

or

- drop startup scripts in /etc/rc.d/rcX.d

I know they are all possible ways, but I am really keen to know which is the AIX native way and why, pros and cons will be appreciated.

Thanks in advance.

[edit] I am targeting for AIX 5.2, 5.3 and 6.1 [/edit]

watcher69b 03-31-2009 09:38 PM

or use smitty...

fuzzyone 04-10-2009 05:45 AM

rc is the preffered way - as the of AIX services started from there... but as for me personally i don't see the big difference


All times are GMT -5. The time now is 06:28 PM.