Open gonzoleeman opened 4 years ago
@gonzoleeman have you came across https://github.com/open-iscsi/rtslib-fb/blob/master/systemd/target.service ?
This is what we use at gluster, https://github.com/gluster/gluster-block/blob/master/systemd/gluster-block-target.service.in
@gonzoleeman have you came across https://github.com/open-iscsi/rtslib-fb/blob/master/systemd/target.service ?
This is what we use at gluster, https://github.com/gluster/gluster-block/blob/master/systemd/gluster-block-target.service.in
No, I was not familiar with that. Interesting.
Targetcli can use the "service" concept of systemd to ensure it's configuration is restored at startup tie and cleared at shutdown time. It can also be handy for other services to be able to sequence themselves before or after targetcli is usable.
For example, openSUSE is using:
This not only manages targetcli configuration, but it also allows overriding the configuration file