776fabd5ec
- 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
19 lines
523 B
Desktop File
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
|