targetcli-fb/targetcli-fb.service
Lee Duncan 776fabd5ec Accepting request 672534 from home:lee_duncan:branches:Base:System
- Ensure this package and the deprecated lio-utils package
  do not run at the same time, in a sane way (bsc#11234233),
  updating the source file targetcli-fb.service. Also, updated
  the SPEC file with new year, updated URL, and http->https.

OBS-URL: https://build.opensuse.org/request/show/672534
OBS-URL: https://build.opensuse.org/package/show/Base:System/targetcli-fb?expand=0&rev=26
2019-02-07 17:46:11 +00:00

19 lines
523 B
Desktop File

[Unit]
Description="Generic Target-Mode Service (fb)"
DefaultDependencies=No
After=network.target target.service
Before=remote-fs-pre.target
Conflicts=target.service
[Service]
Type=oneshot
Environment=CONFIG_FILE=/etc/target/saveconfig.json
EnvironmentFile=-/etc/sysconfig/targetcli
ExecStart=-/usr/bin/targetcli restoreconfig $CONFIG_FILE
RemainAfterExit=true
ExecStop=/usr/bin/targetcli clearconfig confirm=True
ExecReload=/usr/bin/targetcli restoreconfig $CONFIG_FILE clearexisting
[Install]
WantedBy=remote-fs.target