Skip to content

Instantly share code, notes, and snippets.

@x2c3z4
Created July 9, 2016 17:46
Show Gist options
  • Save x2c3z4/555ab187567fc0da65ce81cb9135bf76 to your computer and use it in GitHub Desktop.
Save x2c3z4/555ab187567fc0da65ce81cb9135bf76 to your computer and use it in GitHub Desktop.
lio-target.service
cp target.service /usr/lib/systemd/system/
cd /etc/systemd/system/multi-user.target.wants
ln -sf /usr/lib/systemd/system/target.service .
$ cat target.service
[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/target start
SyslogIdentifier=target
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment