SHA256
3
0
forked from pool/aaa_base
aaa_base/systemd_no_wrap_service.patch
Stephan Kulow 29c5dba32e Accepting request 90962 from Base:System
- Ensure /sbin/service is not clearing SYSTEMD_NO_WRAP (forwarded request 90940 from fcrozat)

OBS-URL: https://build.opensuse.org/request/show/90962
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/aaa_base?expand=0&rev=333
2011-11-14 10:49:27 +00:00

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 ()