[clue-tech] Multiple system backups

William wlist-clue at kimballstuff.com
Sat Feb 18 14:17:03 MST 2006


Dave Price wrote:
> Isn't service part of the daemontools package?
> 
> http://cr.yp.to/daemontools.html
> 
> I have never installed under debian, but it works fine under centOS to
> keep daemons running, and provide enhanced logging as well.

I've never seen that daemontools page, and -- I could be wrong -- but it 
doesn't look like the "/service" mentioned on that page is the same as 
the "service" that comes with RH (RHEL/CentOS/WBEL/etc/other?) systems: 
  http://cr.yp.to/daemontools/faq/create.html#why shows how to use 
"/service" as being "svc [-args] /service/[yourdaemon]".  That's not the 
same as the "service" that David, you, and I are discussing where the 
syntax is "service [yourdaemon] [start|stop|restart|status]".  David 
reports that our "service" isn't available to Debian systems.  :)

For reference, the conversation on "service" was:
 >>> David:  Debian doesn't have a service command for starting/stopping 
services, at least not on a typical system.
 >>
 >> William:  I wasn't aware of this.  My only Linux experience is with
 >> Red Hat and derivative products.  That presents an interesting,
 >> though workable, problem.  Debian users could set the SERVICE_PATH
 >> variable to whatever the equivalent is, if there is one (I hope there
 >> is, otherwise I don't know how Debian users would handle services
 >> centrally).
 >
 > David:  There's invoke-rc.d.  I don't know how similar it is--it's
 > designed to use in Debian packages and goes through the rc.d policy
 > layer.  But using the init.d scripts directly would be easy enough.

I have a couple of systems with daemons that are not hooked by service 
or chkconfig.  Before I pushed my first version of this backup script, 
this problem was in the back of my mind.  When David listed my reliance 
on service as a weakness in portability, I saw opportunity to address my 
own concern with his at the same time.  As a result, the hooks I put 
into my script work with -- literally -- any command or call to another 
script.  To demonstrate (and to fix my own issue with the two daemons in 
that demo script), I wrote service-control -- which is probably more 
than most people would need to temporarily stop/start daemons for the 
backup run, but it was another good exercise.  :)

-- 
William Kimball, Jr.
http://www.kimballstuff.com/
"Programming is an art-form that fights back!" (Unknown)

Catch me on-line!
ICQ:  11588575
AIM:  RyogaHibiki303
Yahoo! IM:  ryogahibiki303
Skype:  RyogaHibiki303
_______________________________________________
CLUE-tech mailing list
CLUE-tech at cluedenver.org
http://cluedenver.org/mailman/listinfo/clue-tech



More information about the clue-tech mailing list