On Tuesday, August 13, 2002, at 11:26 , Kipp, James wrote:
[..]
>> in the daemon 102 class
>>
>> gee, this just needs to be a dumb pig that just gets
>> launched and does some stuff
>
> funny you should mentioned this. as i told you this dumb pig is making me
> nervous and seeing that i am out of antacids, i am making this big easier
> to
> manipulate a la your daemonology stuff.
10% of the code is your pretty algorithm
the rest is to make sure THEY do not get you.....
remember - any process you put into the proc table
will have to be dealt with at some time..... so
one might as well 'plan ahead' for the
"oh well that was not suppose to happen"
start and stop are two useful verbs to have, and
that work well - then you can worry about verbs
like
die_KMT_Puppet
where you do want to do the kill -9
or
bloat_core_lackey_toadie
where you want to send a signal to the process
to dump core....
or maybe even
start_correctly
which tells the daemon to over-look any sins
of o_mission? or commission in the configuration file,
the DNS entry, the networking topology, the members
of the Board, your current stock option strike price...
>> hence on to something like
>>
>> if($me->run_daemon()) {
>> $me->do_daemon();
>> } else {
>> $me->just_shoot_me();
>> }
>
> would be neat, but necessary?
depends on where 'yall be going'...
If you have folks who feel safer
reading more 'OO' style - then yeah...
remember that 'package' is a pragma that
makes a new name space - and 'bless' merely
says
this hash deals with dope in that name space
with some technical bits wrapped around it -
if you remember to start with h2xs and resolve
if you are going to be a child of exporter,
or make your own class hierachy a step or two away....
ciao
drieux
---
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]