Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Daemon on AIX

67 views
Skip to first unread message

Uli

unread,
Jul 4, 2008, 4:39:02 AM7/4/08
to
HI NG,

I´m a newbie at AIX, but i need to create a deamon on AIX.

How can i do this?

Has anybody a good manual or "How-to" for this?

Thanks

Uli

Uli Link

unread,
Jul 4, 2008, 5:14:31 AM7/4/08
to
Uli schrieb:
On AIX every executable can be "daemonized" by the SRC (System Resource
Controller).

If the "daemon" not detaches, it is started (and in case of dying
immediatly restarted) by the SRC.

man mkssys
man startsrc
man stopsrc

--
Uli Link

Uli

unread,
Jul 4, 2008, 6:21:06 AM7/4/08
to
On 4 Jul., 11:14, Uli Link <VonRechts.NachLi...@usenet.arcornews.de>
wrote:

HI,

thanks for your answer.

What are the steps i have to do, when i want to "daemonize" an
exceutable sh-file (e.g. test.sh)

Thanks for your help

Uli

Uli Link

unread,
Jul 4, 2008, 6:58:56 AM7/4/08
to
Uli schrieb:

>>> Has anybody a good manual or "How-to" for this?
>> On AIX every executable can be "daemonized" by the SRC (System Resource
>> Controller).
>>
>> If the "daemon" not detaches, it is started (and in case of dying
>> immediatly restarted) by the SRC.
>>
>> man mkssys
>> man startsrc
>> man stopsrc
>>
>

> What are the steps i have to do, when i want to "daemonize" an
> exceutable sh-file (e.g. test.sh)

Create an entry in SRC with mkssys and then start it startsrc -s <entryname>

Syntax

mkssys {-p Path -s Subsystem -u UserID }
[ -a Arguments ] [ -e StandardError ]
[-i StandardInput ] [ -o StandardOutput ]
[ -t Synonym ] [ -O | -R ] [ -d | -D ]
[ -q | -Q]
[-K | [ -I MessageQueue -m MessageMType |
-f StopForce -n StopNormal -S ] ]
[ -E Nice ] [-G Group ] [ -w Wait ]

For example I start the sshd with

mkssys -p /usr/sbin/sshd -s sshd -u 0 \
-a " -D" -e /dev/null -i /dev/null -o /dev/null \
-R -S -f 9 -n 15 -G tcpip

So the "/usr/sbin/sshd -D" isn't detached so that the SRC can watch the
process id.

SSHD is started with "startsrc -s sshd"


look at /etc/rc.tcpip script or /etc/inittab how it is started at boot time.


--
Uli Link

Uli

unread,
Jul 4, 2008, 7:09:52 AM7/4/08
to
On 4 Jul., 12:58, Uli Link <VonRechts.NachLi...@usenet.arcornews.de>
wrote:

Thanks for help...

Uli

sjm

unread,
Jul 4, 2008, 7:20:08 AM7/4/08
to
0 new messages