73dd38a5ce
Why I did it Part implementation of dhcp_server. HLD: sonic-net/SONiC#1282. Add dhcpservd to dhcp_server container. How I did it Add installing required pkg (psutil) in Dockerfile. Add copying required file to container in Dockerfile (kea-dhcp related and dhcpservd related) Add critical_process and supervisor config. Add support for generating kea config (only in dhcpservd.py) and updating lease table (in dhcpservd.py and lease_update.sh) How to verify it Build image with setting INCLUDE_DHCP_SERVER to y and enabled dhcp_server feature after installed image, container start as expected. Enter container and found that all processes defined in supervisor configuration running as expected. Kill processes defined in critical_processes, container exist.
28 lines
806 B
Plaintext
28 lines
806 B
Plaintext
#
|
|
# First some standard log files. Log by facility.
|
|
#
|
|
|
|
# Log all facilities to /var/log/syslog except cron, auth
|
|
# and authpriv. They are noisy - log them to their own files
|
|
*.*;cron,auth,authpriv.none -/var/log/syslog
|
|
auth,authpriv.* /var/log/auth.log
|
|
cron.* /var/log/cron.log
|
|
|
|
#
|
|
# Emergencies are sent to everybody logged in.
|
|
#
|
|
*.emerg :omusrmsg:*
|
|
|
|
# The named pipe /dev/xconsole is for the `xconsole' utility. To use it,
|
|
# you must invoke `xconsole' with the `-file' option:
|
|
#
|
|
# $ xconsole -file /dev/xconsole [...]
|
|
#
|
|
# NOTE: adjust the list below, or you'll go crazy if you have a reasonably
|
|
# busy site..
|
|
#
|
|
#daemon.*;mail.*;\
|
|
# news.err;\
|
|
# *.=debug;*.=info;\
|
|
# *.=notice;*.=warn |/dev/xconsole
|