Re: [gentoo-user] How to write an init.d script

2003-01-30 Thread Lincoln A. Baxter
One thing that is REALLY COOL about gentoo, is its inovative dependancy
based init system, where you do not have to find a place (ie a numeric
value) which is appropriate for K and S scripts.  As much as I liked
sysV style initscripts, when I first encountered then, the gentoo way,
is really supperior.  Yiu just declare your dependant services, and
gentoo will call the start script in the right place automatically after
you have run rc-update add INITSCRIPT RUNLEVEL to add the script to
the appropriate run level (usually just default).

You can look at any of the scripts in /etc/init.d to get the idea.  It
took me less than an hour to convert the oracle dbora init script from
my red hat partition and convert it to gentoo.  This is one part of the
gentoo system it is WORTH getting to know.  And it is not hard.

Lincoln


On Thu, 2003-01-30 at 22:39, Matt Neimeyer wrote:
 Hey All,
 
 The box I'm running Gentoo on came with Redhat 7 (something) on it. The 
 reason this matters is that it has an LCD panel on the front that displayed 
 lots of useful information (like uptime, memory usage, etc) and some 
 buttons that let you, among other things, shut down the computer. I've got 
 qmail running on the box and it's going to be moving to a colo facility. 
 Now the Redhat install had an init script and a daemon (binary only) and 
 some other tools. On an identical box that I installed Redhat 8 on (for 
 someone else) I was able to transplant those binaries and scripts and 
 everything worked the way it should.
 
 So the question is... what's the likelihood that I can run those binaries 
 on Gentoo without corrupting anything? And how would I rewrite the init 
 script so that I can run it on Gentoo?
 
 Thanks!
 
 Matt
 
 P.S.  I've already tried to identify the hardware with no luck but if 
 someone knows what the LCD unit is that Gallentry installed on their GW500 
 boxes and a better / more direct way to control it... 
 
 
 --
 [EMAIL PROTECTED] mailing list
-- 
Lincoln A. Baxter [EMAIL PROTECTED]


--
[EMAIL PROTECTED] mailing list




Re: [gentoo-user] How to write an init.d script

2003-01-30 Thread BliZZZard
	In theory you be able to copy the binaries over (especially being that 
they were compiled optimized for i386), as long as any required shared libs 
are available.  Now the scripts themselves you probably will have to re- 
write, because their init script methods are VERY different from gentoo...

	If you look at the other scripts though... writing init scripts for gentoo 
is cake...

DJBliZZZard

On Thu, 30 Jan 2003 22:39:12 -0500, Matt Neimeyer [EMAIL PROTECTED] 
wrote:

Hey All,

The box I'm running Gentoo on came with Redhat 7 (something) on it. The 
reason this matters is that it has an LCD panel on the front that 
displayed lots of useful information (like uptime, memory usage, etc) and 
some buttons that let you, among other things, shut down the computer. 
I've got qmail running on the box and it's going to be moving to a colo 
facility. Now the Redhat install had an init script and a daemon (binary 
only) and some other tools. On an identical box that I installed Redhat 8 
on (for someone else) I was able to transplant those binaries and scripts 
and everything worked the way it should.

So the question is... what's the likelihood that I can run those binaries 
on Gentoo without corrupting anything? And how would I rewrite the init 
script so that I can run it on Gentoo?

Thanks!

Matt

P.S.  I've already tried to identify the hardware with no luck but if 
someone knows what the LCD unit is that Gallentry installed on their 
GW500 boxes and a better / more direct way to control it...


--
[EMAIL PROTECTED] mailing list





--
BliZZZard

--
[EMAIL PROTECTED] mailing list