Fix controllerconfig service warning on boot

When the controllerconfig service starts the following
warning is emitted in the dmesg:

Standard output type syslog+console is obsolete, automatically
updating to journal+console. Please update your unit file,
and consider removing the setting altogether.

This is due to a change in systemd-246, where syslog is
no longer supported. Change only for Debian so we
avoid a CentOS retest.

Copied the original controllerconfig.service and replaced
the 'syslog+console' with 'journal+console'.

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I5b41005ae53a1a9dd75dc665a217d607fa80c3f1
This commit is contained in:
Charles Short 2021-11-25 10:38:17 -05:00
parent 3bd912e8ab
commit 771e6ca734
3 changed files with 18 additions and 3 deletions

View File

@ -3,4 +3,3 @@ etc/goenabled.d/*
usr/lib/python*/dist-packages/*
etc/init.d/*
etc/upgrade.d/*
lib/systemd/system/*

View File

@ -0,0 +1,17 @@
[Unit]
Description=controllerconfig service
After=syslog.target network.target remote-fs.target sw-patch.service sysinv-agent.service
After=network-online.target
Before=config.service
[Service]
Type=simple
ExecStart=/etc/init.d/controller_config start
ExecStop=
ExecReload=
StandardOutput=journal+console
StandardError=journal+console
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target

View File

@ -22,7 +22,6 @@ override_dh_install:
install -d -m 755 $(ROOT)/etc/upgrade.d
install -p -D -m 755 upgrade-scripts/* $(ROOT)/etc/upgrade.d
install -d -m 755 $(ROOT)/lib/systemd/system
install -p -D -m 664 scripts/controllerconfig.service $(ROOT)/lib/systemd/system/controllerconfig.service
dh_install
override_dh_fixperms:
@ -38,7 +37,7 @@ override_dh_auto_test:
endif
override_dh_installsystemd:
dh_installsystemd --name controllerconfig
dh_installsystemd -p controllerconfig controllerconfig.service
override_dh_python3:
dh_python3 --shebang=/usr/bin/python3