targetcli/targetcli.service

16 lines
379 B
SYSTEMD
Raw Normal View History

2011-11-04 22:17:44 +00:00
[Unit]
Description=Restore LIO kernel target configuration
2011-11-04 22:17:44 +00:00
Requires=sys-kernel-config.mount
After=sys-kernel-config.mount network.target local-fs.target
2011-11-04 22:17:44 +00:00
[Service]
Type=oneshot
RemainAfterExit=yes
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