mirror of
https://github.com/eblot/pybootd.git
synced 2024-09-11 14:06:57 +03:00
Start up all daemons
This commit is contained in:
parent
c6362196fd
commit
efe3ff3b40
@ -100,10 +100,11 @@ def main():
|
|||||||
daemon = None
|
daemon = None
|
||||||
if not args.tftp:
|
if not args.tftp:
|
||||||
daemon = BootpDaemon(logger, cfgparser)
|
daemon = BootpDaemon(logger, cfgparser)
|
||||||
|
daemon.start()
|
||||||
if not args.pxe:
|
if not args.pxe:
|
||||||
daemon = TftpDaemon(logger, cfgparser, daemon)
|
daemon = TftpDaemon(logger, cfgparser, daemon)
|
||||||
if daemon:
|
|
||||||
daemon.start()
|
daemon.start()
|
||||||
|
if daemon:
|
||||||
while True:
|
while True:
|
||||||
daemon.join(0.5)
|
daemon.join(0.5)
|
||||||
if not daemon.is_alive():
|
if not daemon.is_alive():
|
||||||
|
Loading…
Reference in New Issue
Block a user