summarylogtreecommitdiffstats
path: root/target.service
blob: 5fa716e98e64c8c5ae0b77c3dba0b587cddc0dae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[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=target

[Install]
WantedBy=multi-user.target