diff options
-rw-r--r-- | sh/runscript.sh.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sh/runscript.sh.in b/sh/runscript.sh.in index ceb9ab45..c72a784c 100644 --- a/sh/runscript.sh.in +++ b/sh/runscript.sh.in @@ -215,12 +215,14 @@ if yesno "${rc_verbose:-$RC_VERBOSE}"; then fi # Apply cgroups settings if defined +if [ "$1" = "start" ] ; then if [ "$(command -v cgroup_add_service)" = "cgroup_add_service" ]; then cgroup_add_service /sys/fs/cgroup/openrc cgroup_add_service /sys/fs/cgroup/systemd/system fi [ "$(command -v cgroup_set_limits)" = "cgroup_set_limits" ] && \ cgroup_set_limits +fi # Load our script sourcex "$RC_SERVICE" |