Dirk Mueller
024ddec874
New package, possible replacement for targetcli. Requires the newly-added python-configshell-fb package, as well as the newly-updated python- rtslib-fb package. OBS-URL: https://build.opensuse.org/request/show/391476 OBS-URL: https://build.opensuse.org/package/show/Base:System/targetcli-fb?expand=0&rev=1
18 lines
498 B
Desktop File
18 lines
498 B
Desktop File
[Unit]
|
|
Description="Generic Target-Mode Service (fb)"
|
|
DefaultDependencies=No
|
|
After=network.target target.service
|
|
Before=remote-fs-pre.target
|
|
|
|
[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
|