Skip to content

Commit

Permalink
Manually start and stop rsyslogd
Browse files Browse the repository at this point in the history
For Bookworm, the init.d service file for rsyslogd is removed, and the
only script to start and stop rsyslogd is the systemd service file.
However, that can only be used if systemd is being used as the init
manager, which isn't the case for our docker containers.

As an alternative, manually start and stop rsyslogd ourselves.

Signed-off-by: Saikrishna Arcot <[email protected]>
  • Loading branch information
saiarcot895 committed Apr 11, 2024
1 parent 712e638 commit 05aec1f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .azure-pipelines/build-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
sudo mkdir -m 755 /var/run/sswsyncd
sudo apt-get install -y rsyslog
sudo service rsyslog start
sudo rsyslogd
cat /etc/apt/sources.list
dpkg --list | grep libnl
Expand Down Expand Up @@ -167,7 +167,8 @@ jobs:
displayName: "Compile sonic sairedis with coverage enabled"
- script: |
sudo cp azsyslog.conf /etc/rsyslog.conf
sudo service rsyslog restart
sudo killall rsyslogd
sudo rsyslogd
displayName: "Update rsyslog.conf"
- ${{ if eq(parameters.run_unit_test, true) }}:
- script: |
Expand Down

0 comments on commit 05aec1f

Please sign in to comment.