2011-11-04 22:17:44 +00:00
|
|
|
[Unit]
|
2012-01-27 21:08:17 +00:00
|
|
|
Description=Restore LIO kernel target configuration
|
2011-11-04 22:17:44 +00:00
|
|
|
Requires=sys-kernel-config.mount
|
2012-01-27 21:08:17 +00:00
|
|
|
After=sys-kernel-config.mount network.target local-fs.target
|
2011-11-04 22:17:44 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
RemainAfterExit=yes
|
2011-12-13 23:29:15 +00:00
|
|
|
ExecStart=/usr/bin/targetcli restoreconfig clear_existing=true
|
|
|
|
ExecStop=/usr/bin/targetcli clearconfig confirm=true
|
2011-11-04 22:17:44 +00:00
|
|
|
SyslogIdentifier=targetcli
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|