The bug that lead to this workaround was fixed and an update is
available for Fedora:
https://bugzilla.redhat.com/show_bug.cgi?id=797913
Keeping this workaround would be annoying as --skip-redirect doesn't
exist on all rpm-based distributions, and we'd have to remember using it
everywhere we interact with the tgtd service.
Change-Id: I22a5d4fe154ea04bd35d89db6d63734b5bd405aa
| ... | ... |
@@ -1735,8 +1735,7 @@ elif is_service_enabled n-vol; then |
| 1735 | 1735 |
sudo stop tgt || true |
| 1736 | 1736 |
sudo start tgt |
| 1737 | 1737 |
else |
| 1738 |
- # bypass redirection to systemctl during restart |
|
| 1739 |
- sudo /sbin/service --skip-redirect tgtd restart |
|
| 1738 |
+ restart_service tgtd |
|
| 1740 | 1739 |
fi |
| 1741 | 1740 |
fi |
| 1742 | 1741 |
|