Skip to content

Commit

Permalink
rbd-target-gw/api systemd dep fix
Browse files Browse the repository at this point in the history
Newer versions of systemd will return error when trying to start
rbd-target-gw, because it detects ordering and dependency issue
with rbd-target-api.

This removes the bind/wants between the 2 services. The bind/wants was
not required and was added to make it more convenient for users so that
the services stopped and restarted together.
  • Loading branch information
Mike Christie committed May 13, 2019
1 parent b618e29 commit 03f8ca9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion usr/lib/systemd/system/rbd-target-api.service
Expand Up @@ -3,7 +3,7 @@ Description=Ceph iscsi target configuration API

Requires=sys-kernel-config.mount
After=sys-kernel-config.mount network-online.target tcmu-runner.service
Wants=network-online.target rbd-target-gw.service tcmu-runner.service
Wants=network-online.target tcmu-runner.service

[Service]
LimitNOFILE=1048576
Expand Down
1 change: 0 additions & 1 deletion usr/lib/systemd/system/rbd-target-gw.service
Expand Up @@ -4,7 +4,6 @@ Description=Setup system to export rbd images through LIO
Requires=sys-kernel-config.mount
After=sys-kernel-config.mount network-online.target rbd-target-api.service
Wants=network-online.target
BindsTo=rbd-target-api.service

[Service]
LimitNOFILE=1048576
Expand Down

0 comments on commit 03f8ca9

Please sign in to comment.