Skip to content

Commit

Permalink
Added oom killer score so print3d does not get killed
Browse files Browse the repository at this point in the history
  • Loading branch information
olijf committed May 18, 2016
1 parent 9175956 commit 3ebbf47
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/script/print3d-new-device.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ for DEV in $(ls /dev/ttyACM* /dev/ttyUSB*); do
if [ ! -S $SOCKET ]; then
$PRINT3D_RUNNER ${DEVBASE} &
#disown $!
#Make sure that print3d-runner and childs are never killed by the OOM-killer
(echo -1000 > /proc/$!/oom_score_adj)
sleep 2
fi
done

0 comments on commit 3ebbf47

Please sign in to comment.