You are not logged in.

#1 2005-05-17 00:39:25

Cam
Member
From: Brisbane, Aus
Registered: 2004-12-21
Posts: 658
Website

BKGD daemons

I've probably missed something easy but I'll ask anyway smile I've heard people mention around here backgrounding daemons on boot will make it faster, but you can't tell if they've failed or not. I've done some hacking aorund in my initscripts before and noticed the stat_bkgd() function so it's obviously something nifty. How do I go about doing this?

Thanks big_smile

Offline

#2 2005-05-17 00:57:23

T-Dawg
Forum Fellow
From: Wilmington, NC
Registered: 2005-01-29
Posts: 2,734

Re: BKGD daemons

how to set it? prefix whatever daemon you want to background with a @ in the DAEMONS() array in /etc/rc.conf.

Offline

#3 2005-05-17 02:49:44

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,432
Website

Re: BKGD daemons

yeah - not being able to see if they have failed is inevitable i think - it's logical - you want to know if they failed you have to wait and see - i guess it could log it tho - hmmmmm

Offline

#4 2005-05-17 04:12:46

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: BKGD daemons

dibblethewrecker wrote:

yeah - not being able to see if they have failed is inevitable i think - it's logical - you want to know if they failed you have to wait and see - i guess it could log it tho - hmmmmm

Maybe add some sort of logging routine?

Such a thing could be implemented through a simple 'service' script or something,

service status gdm would go nab the status of the gdm that started earlier from the logs, or if we want to be funky and cool, there could be a status part in the /etc/rc.d/ script for GDM that checks it's status.

a service script could also be utilised for somethign like service start gdm which would run /etc/rc.d/gdm start and service stop /etc/rc.d/gdm stop.

sure its a thin wrapper, but would provide a good way of providing status information.

anyway, thats an idea, maybe i ought to post it on the mailing list tonight.

iphitus

edit: and that was my 500th post, about time i did something tongue

Offline

#5 2005-05-17 08:49:30

paranoos
Member
From: thornhill.on.ca
Registered: 2004-07-22
Posts: 442

Re: BKGD daemons

easy way to see what daemons are running, and when they were started:

ls -l /var/run/daemons/

Offline

#6 2005-05-17 10:00:45

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,432
Website

Re: BKGD daemons

not all daemons create those files - the well written ones do smile

Offline

#7 2005-05-17 11:51:54

Cam
Member
From: Brisbane, Aus
Registered: 2004-12-21
Posts: 658
Website

Re: BKGD daemons

Thnks, that way easy smile

Offline

Board footer

Powered by FluxBB