forked from pool/aaa_base
6af307b1e6
- Ensure /sbin/service is not clearing SYSTEMD_NO_WRAP OBS-URL: https://build.opensuse.org/request/show/90940 OBS-URL: https://build.opensuse.org/package/show/Base:System/aaa_base?expand=0&rev=319
20 lines
551 B
Diff
20 lines
551 B
Diff
diff --git a/files/sbin/service b/files/sbin/service
|
|
index 5984b28..56ad239 100755
|
|
--- a/files/sbin/service
|
|
+++ b/files/sbin/service
|
|
@@ -21,12 +21,13 @@ RCDIR="/etc/init.d"
|
|
#
|
|
PATH=/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin
|
|
test -n "$TERM" || TERM=raw
|
|
+test -n "$SYSTEMD_NO_WRAP" && export SYSTEMD_NO_WRAP
|
|
LANG=POSIX
|
|
export PATH TERM LANG
|
|
|
|
exec_rc ()
|
|
{
|
|
- env -i LANG=$LANG PATH=$PATH TERM=$TERM ${1+"$@"}
|
|
+ env -i LANG=$LANG PATH=$PATH TERM=$TERM SYSTEMD_NO_WRAP=$SYSTEMD_NO_WRAP ${1+"$@"}
|
|
}
|
|
|
|
usage ()
|