mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +02:00
statd: move start to runlevel 2 to save CPU cycles at bootstrap
Also, we don't need to start a logger process for statd, it behaves nicely and uses syslog. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
#set DEBUG=1
|
#set DEBUG=1
|
||||||
|
|
||||||
service name:statd log [S12345] <pid/confd> statd -f -p /run/statd.pid -n -- Status daemon
|
service name:statd [12345] <pid/confd> statd -f -p /run/statd.pid -n -- Status daemon
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ def main():
|
|||||||
from . import ietf_ntp
|
from . import ietf_ntp
|
||||||
yang_data = ietf_ntp.operational()
|
yang_data = ietf_ntp.operational()
|
||||||
elif args.model == 'ieee802-dot1ab-lldp':
|
elif args.model == 'ieee802-dot1ab-lldp':
|
||||||
from . import infix_lldp
|
from . import infix_lldp
|
||||||
yang_data = infix_lldp.operational()
|
yang_data = infix_lldp.operational()
|
||||||
elif args.model == 'infix-firewall':
|
elif args.model == 'infix-firewall':
|
||||||
from . import infix_firewall
|
from . import infix_firewall
|
||||||
@@ -90,9 +90,6 @@ def main():
|
|||||||
elif args.model == 'ietf-bfd-ip-sh':
|
elif args.model == 'ietf-bfd-ip-sh':
|
||||||
from . import ietf_bfd_ip_sh
|
from . import ietf_bfd_ip_sh
|
||||||
yang_data = ietf_bfd_ip_sh.operational()
|
yang_data = ietf_bfd_ip_sh.operational()
|
||||||
elif args.model == 'infix-wifi-radio':
|
|
||||||
from . import infix_wifi_radio
|
|
||||||
yang_data = infix_wifi_radio.operational()
|
|
||||||
else:
|
else:
|
||||||
common.LOG.warning("Unsupported model %s", args.model)
|
common.LOG.warning("Unsupported model %s", args.model)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user