jthomet
12-31-2002, 06:01 PM
Hi,
I have recently begun to work on modifying the (perl) install scripts for a Linux daemon. I'd like to have the install script configure the system to load the daemon when the system boots. Is there any generic way to do this?
(I ask because I may be distributing these scripts to Linux servers running on any number of distributions. I really don't want to assume that everybody is running RedHat and copy the script to the /etc/init.d directory and leave it at that. Honestly, I'm not even sure how Suse, Debian, or some of the other distributions handle system startup.) Assuming that I have to handle each one independently in a type of block-if statement, is there any command/script/function that I can employ to determine which distribution is in-use? Can anyone point me in any specific direction? Any help would be appreciated!
I have recently begun to work on modifying the (perl) install scripts for a Linux daemon. I'd like to have the install script configure the system to load the daemon when the system boots. Is there any generic way to do this?
(I ask because I may be distributing these scripts to Linux servers running on any number of distributions. I really don't want to assume that everybody is running RedHat and copy the script to the /etc/init.d directory and leave it at that. Honestly, I'm not even sure how Suse, Debian, or some of the other distributions handle system startup.) Assuming that I have to handle each one independently in a type of block-if statement, is there any command/script/function that I can employ to determine which distribution is in-use? Can anyone point me in any specific direction? Any help would be appreciated!