targetcli-fb/targetcli-fb.service
Dirk Mueller 024ddec874 Accepting request 391476 from home:lee_duncan
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
2016-04-26 14:17:33 +00:00

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