tgt/tgt-systemd-service-update.patch
Dirk Mueller 5971eaaae4 - Update to version v1.0.92 (from 1.0.89):
* fix arm64 compilation
  * do not rely on non-portable __WORDSIZE nor LFS64 interfaces
  * Enabled thin-provision option for discarding ranges from block
    devices, that supporting discard

OBS-URL: https://build.opensuse.org/package/show/Base:System/tgt?expand=0&rev=63
2024-08-31 09:24:29 +00:00

23 lines
797 B
Diff

From: Lee Duncan
Date: Sat 24 Dec 2022 09:15:40 AM PST
Subject: [PATCH] tgt: systemd service update
Update our systemd service file to match what we do at SUSE.
---
Index: tgt-1.0.92/scripts/tgtd.service
===================================================================
--- tgt-1.0.92.orig/scripts/tgtd.service
+++ tgt-1.0.92/scripts/tgtd.service
@@ -20,8 +20,9 @@ RestrictRealtime=true
# end of automatic additions
Type=forking
Environment=TGTD_CONFIG=/etc/tgt/targets.conf
+EnvironmentFile=-/etc/sysconfig/tgt
-ExecStart=/usr/sbin/tgtd
+ExecStart=/usr/sbin/tgtd $TGTD_OPTS
ExecStartPost=/usr/sbin/tgtadm --op update --mode sys --name State -v offline
ExecStartPost=/usr/sbin/tgtadm --op update --mode sys --name State -v ready
ExecStartPost=/usr/sbin/tgt-admin -e -c ${TGTD_CONFIG}