>> I am trying to jail a perl daemon that is launched (and automatically
>> respawned if it dies) from /etc/inittab on a CentOS 5.2 server.
>>
>>The /etc/inittab entry looks something like this:
>>
>>N1:345:respawn:jk_chrootlaunch -u foo -g foo -j /var/foojail -x
>>/usr/local/bin/foo -- -c /usr/local/etc/foo.conf
>> I believe I have initialized the jail correctly
because I can run the
>> jailed daemon from
>> the command line as root
>>
>> address@hidden ~ ]# jk_chrootlaunch -u foo -g foo -j /var/foojail
-x
>> /usr/local/bin/foo -- -c /usr/local/etc/foo.conf
>>
>> and the daemon runs as expected.
>
>I guess it runs in the background, right?
>
>processes that run from inittab must not detach and run in the background.
I should have made it clearer. No the perl script does not detach,
and in fact it runs just fine from /etc/inittab without
the jk_chrootlaunch. In fact, I am attempting to convert a daemon that
was originally setup with this /etc/inittab entry;
where /usr/local/bin/foo was owned by
foo:foo and had the suid bit set. To one which is jailed
and does not need the suid bit to run
as user/group foo/foo.
Dean Takemori
Systems Support Supervisor
TD Food Group
address@hidden