2011-11-21 20:20:50 |
Dave Walker |
description |
Cobbler used to advertise itself via avahi, if possible.. However, the code which did this is now commented out.
cobbler/cobblerd.py:
...
#def do_other_tasks(bootapi, settings, syslog_port, logger):
#
# # FUTURE: this should also start the Web UI, if the dependencies
# # are available.
#
# if os.path.exists("/usr/bin/avahi-publish-service"):
# pid2 = os.fork()
# if pid2 == 0:
# do_syslog(bootapi, settings, syslog_port, logger)
# else:
# do_avahi(bootapi, settings, logger)
# os.waitpid(pid2, 0)
# else:
# do_syslog(bootapi, settings, syslog_port, logger)
...
#def do_avahi(bootapi, settings, logger):
# # publish via zeroconf. This command will not terminate
# log(logger, "publishing avahi service")
# cmd = [ "/usr/bin/avahi-publish-service",
# "cobblerd",
# "_http._tcp",
# "%s" % settings.xmlrpc_port ]
# proc = sub_process.Popen(cmd, shell=False, stderr=sub_process.PIPE, stdout=sub_process.PIPE, close_fds=True)
# proc.communicate()[0]
# log(logger, "avahi service terminated") |
Cobbler used to advertise itself via avahi, if possible.. However, the code which did this is now commented out.
It was disabled by upstream as part of:
commit f24ffa0d4d997d6c536ca7d89d6bfbc1b9dce07f
Author: Michael DeHaan <mdehaan@redhat.com>
Date: Fri Jan 23 16:40:10 2009 -0500
Consolidating services to use just one port, removed syslog logging since we have anamon
(https://github.com/rubenk/cobbler/commit/f24ffa0d4d997d6c536ca7d89d6bfbc1b9dce07f)
Specifically:
cobbler/cobblerd.py:
...
#def do_other_tasks(bootapi, settings, syslog_port, logger):
#
# # FUTURE: this should also start the Web UI, if the dependencies
# # are available.
#
# if os.path.exists("/usr/bin/avahi-publish-service"):
# pid2 = os.fork()
# if pid2 == 0:
# do_syslog(bootapi, settings, syslog_port, logger)
# else:
# do_avahi(bootapi, settings, logger)
# os.waitpid(pid2, 0)
# else:
# do_syslog(bootapi, settings, syslog_port, logger)
...
#def do_avahi(bootapi, settings, logger):
# # publish via zeroconf. This command will not terminate
# log(logger, "publishing avahi service")
# cmd = [ "/usr/bin/avahi-publish-service",
# "cobblerd",
# "_http._tcp",
# "%s" % settings.xmlrpc_port ]
# proc = sub_process.Popen(cmd, shell=False, stderr=sub_process.PIPE, stdout=sub_process.PIPE, close_fds=True)
# proc.communicate()[0]
# log(logger, "avahi service terminated") |
|