@ -1,4 +1,4 @@
# $OpenBSD: rc.subr,v 1.130 2019/01/20 04:52:0 7 ajacoutot Exp $
# $OpenBSD: rc.subr,v 1.131 2019/03/21 15:10:2 7 ajacoutot Exp $
#
#
# Copyright (c) 2010, 2011, 2014-2017 Antoine Jacoutot <ajacoutot@openbsd.org>
# Copyright (c) 2010, 2011, 2014-2017 Antoine Jacoutot <ajacoutot@openbsd.org>
# Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org>
# Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org>
@ -320,5 +320,5 @@ unset _rcflags _rcrtable _rcuser _rctimeout
# make sure pexp matches the process (i.e. doesn't include the quotes)
# make sure pexp matches the process (i.e. doesn't include the quotes)
pexp="$(eval echo ${daemon}${daemon_flags:+ ${daemon_flags}})"
pexp="$(eval echo ${daemon}${daemon_flags:+ ${daemon_flags}})"
rcexec="su -l -c ${daemon_class} -s /bin/sh ${daemon_user} -c"
rcexec="su -l -c ${daemon_class} -s /bin/sh ${daemon_user} -c"
[ "${daemon_rtable}" -eq 0 ] ||
[ "${daemon_rtable}" -eq "$(id -R)" ] ||
rcexec="route -T ${daemon_rtable} exec ${rcexec}"
rcexec="route -T ${daemon_rtable} exec ${rcexec}"