Changeset 469 in flair-src for trunk/scripts/ubuntu_cgroup_hack.sh
- Timestamp:
- 03/10/22 10:50:29 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/ubuntu_cgroup_hack.sh
r306 r469 1 if [ -f /etc/lsb-release ]; then 2 . /etc/lsb-release 3 fi 1 #!/bin/bash 4 2 5 if [ _$DISTRIB_ID == _Ubuntu ]; then 6 #we must run as root 7 if [ $EUID -ne 0 ]; then 8 exec sudo -E $0 $* 9 fi 3 function red_echo () { 4 echo -e "\033[33m$1\033[0m" 5 } 10 6 11 #we must run in root cgroup to escape possible restrictions on scheduling12 if [ -d /sys/fs/cgroup/cpu ]; then13 echo $$ > /sys/fs/cgroup/cpu/tasks14 fi15 fi16 7 8 red_echo "Calling ubuntu_cgroup_hack.sh is no longer necessary; this script now does nothing" 9 red_echo "If you encounter problems running your program, call the ubuntu_cgroup_hack_compat.sh script and warn a Flair developer"
Note:
See TracChangeset
for help on using the changeset viewer.