Customization: automating daemon.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I need to customize RedHat 9 to run a daemon with the following
requirements: 

Daemon needs to:
- run all the time in the background as it receives service requests via
hardware not ports.
- restart if it crashes.
- run as a user other than root.

Before the daemon can run:
- certain rc5.d scripts need to have all started.


So far I have thought of two possibilities:

1. An Entry In /etc/inittab
---------------------------
But I can't find a method of running these entries as a non-root user.

2. An xinetd service
--------------------
But I need the service to be running all the time in the background, and to
restart if it crashes.

I think I am asking for a cross between inetd(run all the time, run as
non-root user), and inittab(respawn).

If you have any ideas TIA.



Cal McPherson
Software Engineer
ADTEC Communications
Phone: +612 9213 9917 Fax: +612 9281 7575
Email: calm@xxxxxxxxxxxx
Web: www.adtec.com.au
-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux