sh/openrc-run: source service script before ulimit is processed
This is needed to allow the service script author to set a default for rc_ulimit inside the service script.
This commit is contained in:
parent
c2d256bafb
commit
66ed8082d0
@ -243,6 +243,9 @@ sourcex "@LIBEXECDIR@/sh/s6.sh"
|
|||||||
sourcex "@LIBEXECDIR@/sh/start-stop-daemon.sh"
|
sourcex "@LIBEXECDIR@/sh/start-stop-daemon.sh"
|
||||||
sourcex "@LIBEXECDIR@/sh/supervise-daemon.sh"
|
sourcex "@LIBEXECDIR@/sh/supervise-daemon.sh"
|
||||||
|
|
||||||
|
# Load our script
|
||||||
|
sourcex "$RC_SERVICE"
|
||||||
|
|
||||||
# Set verbose mode
|
# Set verbose mode
|
||||||
if yesno "${rc_verbose:-$RC_VERBOSE}"; then
|
if yesno "${rc_verbose:-$RC_VERBOSE}"; then
|
||||||
EINFO_VERBOSE=yes
|
EINFO_VERBOSE=yes
|
||||||
@ -272,9 +275,6 @@ for _cmd; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Load our script
|
|
||||||
sourcex "$RC_SERVICE"
|
|
||||||
|
|
||||||
eval "printf '%s\n' $required_dirs" | while read _d; do
|
eval "printf '%s\n' $required_dirs" | while read _d; do
|
||||||
if [ -n "$_d" ] && [ ! -d "$_d" ]; then
|
if [ -n "$_d" ] && [ ! -d "$_d" ]; then
|
||||||
eerror "$RC_SVCNAME: \`$_d' is not a directory"
|
eerror "$RC_SVCNAME: \`$_d' is not a directory"
|
||||||
|
Loading…
Reference in New Issue
Block a user