Changeset 469 in flair-src for trunk/scripts/ubuntu_cgroup_hack.sh


Ignore:
Timestamp:
03/10/22 10:50:29 (2 years ago)
Author:
Sanahuja Guillaume
Message:

change all scripts to remove call to distribution_specific_hack, which is no longer necessary

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
    42
    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
     3function red_echo () {
     4        echo -e "\033[33m$1\033[0m"
     5}
    106
    11   #we must run in root cgroup to escape possible restrictions on scheduling
    12   if [ -d /sys/fs/cgroup/cpu ]; then
    13     echo $$ > /sys/fs/cgroup/cpu/tasks
    14   fi
    15 fi
    167
     8red_echo "Calling ubuntu_cgroup_hack.sh is no longer necessary; this script now does nothing"
     9red_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.