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
nhttpd - on/off
-
- Einsteiger
- Beiträge: 102
- Registriert: Freitag 29. Dezember 2006, 10:44
-
- Administrator
- Beiträge: 2675
- Registriert: Donnerstag 28. September 2006, 18:18
You can add these lines to start_neutrino:
(It's only an example!)
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
-
- CDK-Experte
- Beiträge: 4335
- Registriert: Donnerstag 3. April 2008, 13:05
Re: nhttpd - on/off
(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
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
-
- Developer
- Beiträge: 1475
- Registriert: Dienstag 4. Februar 2003, 22:02
Re: nhttpd - on/off
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.
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.
-
- Developer
- Beiträge: 4189
- Registriert: Sonntag 2. November 2003, 12:36
Re: nhttpd - on/off
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.