summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorSimon Rettberg2019-10-18 16:53:23 +0200
committerSimon Rettberg2019-10-18 16:53:23 +0200
commit437f024c41ff8070340124c66dfaf1e505cd5048 (patch)
treed9c13c2832c8ebce8779fb5c6ac30cabac2cb6d1 /core
parent[cups] Add hplip for HP-specific filters (diff)
downloadmltk-437f024c41ff8070340124c66dfaf1e505cd5048.tar.gz
mltk-437f024c41ff8070340124c66dfaf1e505cd5048.tar.xz
mltk-437f024c41ff8070340124c66dfaf1e505cd5048.zip
[idleaction] Pass --kill-user-processes by default
Diffstat (limited to 'core')
-rwxr-xr-xcore/modules/idleaction/data/opt/openslx/scripts/idle-daemon-launcher3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/modules/idleaction/data/opt/openslx/scripts/idle-daemon-launcher b/core/modules/idleaction/data/opt/openslx/scripts/idle-daemon-launcher
index 3f20ca5e..24b52679 100755
--- a/core/modules/idleaction/data/opt/openslx/scripts/idle-daemon-launcher
+++ b/core/modules/idleaction/data/opt/openslx/scripts/idle-daemon-launcher
@@ -32,5 +32,8 @@ for t in $SLX_SHUTDOWN_SCHEDULE; do
CMD="$CMD --poweroff $t"
done
+if [ "$SLX_ALLOW_USER_BGTASK" != "yes" ]; then
+ CMD="$CMD --kill-user-processes"
+fi
exec /opt/openslx/sbin/idle-daemon $CMD