summaryrefslogtreecommitdiff
path: root/strata/openstack-services/rtslib-fb.morph
blob: c9e901aeef4b514d4484dcf32a9a2d2880e46f99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
name: rtslib-fb
kind: chunk
build-system: python-distutils
post-install-commands:
- mkdir -p "$DESTDIR$PREFIX"/lib/systemd/system
- |
  install -D -m 0644 /proc/self/fd/0 <<'EOF' "$DESTDIR$PREFIX"/lib/systemd/system/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/targetctl restore
  ExecStop=/usr/bin/targetctl clear
  SyslogIdentifier=target

  [Install]
  WantedBy=multi-user.target
  EOF