Patrick Williams | 6f74664 | 2021-08-06 07:40:55 -0500 | [diff] [blame] | 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" |
Vijay Khemka | c32281b | 2019-08-20 11:59:14 -0700 | [diff] [blame] | 2 | |
Amithash Prasasd | 34247ac | 2024-01-16 16:13:48 -0800 | [diff] [blame] | 3 | require conf/recipes/fb-consoles.inc |
| 4 | |
Vijay Khemka | c32281b | 2019-08-20 11:59:14 -0700 | [diff] [blame] | 5 | SRC_URI += "file://rsyslog.conf \ |
| 6 | file://rsyslog.logrotate \ |
| 7 | file://rotate-event-logs.service \ |
| 8 | file://rotate-event-logs.timer \ |
Amithash Prasasd | 34247ac | 2024-01-16 16:13:48 -0800 | [diff] [blame] | 9 | file://rsyslog-oob-console.conf.in \ |
Vijay Khemka | c32281b | 2019-08-20 11:59:14 -0700 | [diff] [blame] | 10 | " |
| 11 | |
Potin Lai | 5bb6663 | 2023-02-03 23:32:40 +0800 | [diff] [blame] | 12 | PACKAGECONFIG:append = " imjournal klog imfile" |
Vijay Khemka | c32281b | 2019-08-20 11:59:14 -0700 | [diff] [blame] | 13 | |
Patrick Williams | 6f74664 | 2021-08-06 07:40:55 -0500 | [diff] [blame] | 14 | do_install:append() { |
Vijay Khemka | c32281b | 2019-08-20 11:59:14 -0700 | [diff] [blame] | 15 | install -m 0644 ${WORKDIR}/rotate-event-logs.service ${D}${systemd_system_unitdir} |
| 16 | install -m 0644 ${WORKDIR}/rotate-event-logs.timer ${D}${systemd_system_unitdir} |
| 17 | rm ${D}${sysconfdir}/rsyslog.d/imjournal.conf |
Amithash Prasasd | 34247ac | 2024-01-16 16:13:48 -0800 | [diff] [blame] | 18 | for host in ${OBMC_HOST_INSTANCES}; do |
| 19 | host_name="host${host}" |
| 20 | conf=${D}${sysconfdir}/rsyslog.d/${host_name}.conf |
| 21 | install -m 644 ${WORKDIR}/rsyslog-oob-console.conf.in ${conf} |
| 22 | sed -i "s/__OOB_CONSOLE_HOST__/${host_name}/g;" ${conf} |
| 23 | done |
Vijay Khemka | c32281b | 2019-08-20 11:59:14 -0700 | [diff] [blame] | 24 | } |
| 25 | |
Patrick Williams | 6f74664 | 2021-08-06 07:40:55 -0500 | [diff] [blame] | 26 | SYSTEMD_SERVICE:${PN} += " rotate-event-logs.service rotate-event-logs.timer" |