Skip to content

Commit

Permalink
apt: Fix an unstable systemd test (#524)
Browse files Browse the repository at this point in the history
Add `--now` to `systemctl enable` in update-from-v4.sh to make sure to
start the service before checking the status.

Signed-off-by: Takuro Ashie <ashie@clear-code.com>
  • Loading branch information
ashie authored Jul 15, 2023
1 parent bbefd3a commit b60c833
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions fluent-package/apt/systemd-test/update-from-v4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,9 @@ systemctl status --wait --no-pager fluentd

# Test: restoring td-agent service alias
sudo systemctl unmask td-agent
sudo systemctl enable fluentd
#
# FIXME:
# td-agent (alias of fluentd service should be enabled,
# but systemctl status td-agent may fail frequently with exit 3.
# It means inactive (dead) status.
# Until finding correct solution to fix this issue, disable it for a while.
#
#systemctl status --wait --no-pager td-agent
#
sudo systemctl enable --now fluentd

systemctl status --wait --no-pager td-agent
systemctl status --wait --no-pager fluentd

# Test: config migration
Expand Down

0 comments on commit b60c833

Please sign in to comment.