targetcli/targetcli.service
Andy Grover 1fdb82ada2 update to 2.0rc1.fb5-2
Signed-off-by: Andy Grover <agrover@redhat.com>
2012-01-27 13:08:17 -08:00

16 lines
379 B
Desktop File

[Unit]
Description=Restore LIO kernel target configuration
Requires=sys-kernel-config.mount
After=sys-kernel-config.mount network.target local-fs.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/targetcli restoreconfig clear_existing=true
ExecStop=/usr/bin/targetcli clearconfig confirm=true
SyslogIdentifier=targetcli
[Install]
WantedBy=multi-user.target