nhttpd - on/off

nitr8
Einsteiger
Einsteiger
Beiträge: 102
Registriert: Freitag 29. Dezember 2006, 10:44

nhttpd - on/off

Beitrag von nitr8 »

I have added an on off switch in Driver / Boot Settings to turn nhttpd on or off. If you don't use yweb why run the demon?

it all works 100%, what i cant figure out is how not using var-neutrino-local.sh is to touch /var/etc/.boot_nhttpd so that it defaults to on.

enable_yweb-09-08-2007_10h36.diff

please find attached the diff.

--me
dbt
Administrator
Beiträge: 2675
Registriert: Donnerstag 28. September 2006, 18:18

Beitrag von dbt »

You can add these lines to start_neutrino:

Code: Alles auswählen

if [ -e /var/tuxbox/config/neutrino.conf ] ; then
	echo "#found neutrino.conf..."
	else
	echo "#first start: set nhttp starting to default..."
	touch /var/etc/.nhttpd
fi
(It's only an example!)
rhabarber1848
CDK-Experte
Beiträge: 4335
Registriert: Donnerstag 3. April 2008, 13:05

Re: nhttpd - on/off

Beitrag von rhabarber1848 »

(nach oben hol)

Dieser Patch wäre doch nett fürs CVS, oder?
Ich habe ihn allerdings nicht mit dem aktuellen CVS abgeglichen,
nur gerade im ULC gesehen :D
Barf
Developer
Beiträge: 1475
Registriert: Dienstag 4. Februar 2003, 22:02

Re: nhttpd - on/off

Beitrag von Barf »

I suspect that disabling nhpptd under some circumstances may have unexpected side effects. There are spurious "wget localhost" in some places in the code if I recall correctly.

The few ones that want to disable nhttpd can hand-edit start_neutrino. The rest of us will have yet another configuration option and larger neutrino.

My vote is therefore against committing.
seife
Developer
Beiträge: 4189
Registriert: Sonntag 2. November 2003, 12:36

Re: nhttpd - on/off

Beitrag von seife »

I agree with Barf - even though there is only one instance of "wget localhost" left - and that is to tell nhttpd to reread the services - but still, IMHO we should actually try to get less configuration options, not more.