Commit 517cf37
CA-405851: stop_all_gc failed to stop SMGC services
systemd has changed its output for command as folllows
/usr/bin/systemctl list-units SMGC@*
============>
SMGC@1.service
SMGC@2.service
============
SMGC@1.service
SMGC@2.service
<============
Note: the extra space before the valid service name
This means `cut -d' ' -f1` can no longer parse the service name.
`awk` is used rather that `cut` to fix the issue
Signed-off-by: Lin Liu <Lin.Liu01@cloud.com>1 parent 332dacb commit 517cf37
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments