Discussion:
hostapd does not detach from the terminal
kenw
2003-01-16 17:09:16 UTC
Permalink
Hi,

When I start hostapd it does not detach from the terminal. Is this
normal behaviour, or should it fork giving me the terminal back. A
couple of example command line I am using are below.


Simple command line:

[***@linux01 hostapd]# ./hostapd wlan0

Using interface wlan0ap with hwaddr 00:80:c6:e3:5c:94 and ssid 'test'
Flushing old station entries


More complex command line:


[***@linux01 hostapd]# ./hostapd -x -S KEBAB -o 192.168.0.254 -a
192.168.0.254 -p1645 -s secret wlan0
Using interface wlan0ap with hwaddr 00:80:c6:e3:5c:94 and ssid 'KEBAB'
Flushing old station entries


Thanks and best regards,
Ken
www.wnao.org.uk
Jouni Malinen
2003-01-17 03:28:23 UTC
Permalink
Post by kenw
When I start hostapd it does not detach from the terminal. Is this
normal behaviour, or should it fork giving me the terminal back. A
couple of example command line I am using are below.
It is normal behavior for the latest release, but CVS version has
support for forking into background.
--
Jouni Malinen PGP id EFC895FA
Denis Vlasenko
2003-01-23 09:39:04 UTC
Permalink
Post by Jouni Malinen
Post by kenw
When I start hostapd it does not detach from the terminal. Is this
normal behaviour, or should it fork giving me the terminal back. A
couple of example command line I am using are below.
It is normal behavior for the latest release, but CVS version has
support for forking into background.
Not that I am against forking, but backgrounding code duplication
in a unix utilities of all kinds is a waste of time.

You can save your time by using already existing tools.
Yes, there are tools to do it nicely. I use
daemontools, they can start and daemonize programs,
log their stdout with upper log size limit, *restart* crashed
daemons (like infamous named) without losing logs etc etc etc.

I am impressed by its simple, modular design.
What a contrast with monstrosities I have to work with
on my day job - Oracle under Windows 2000. That can be used
to scare small and not-so-small children.
--
vda

Loading...