This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Background slice with much lower system (particularly IO) impact | |
Before=slices.target | |
[Slice] | |
# CPU | |
# cgroup v1. The allowed range is 2 to 262144. Defaults to 1024. | |
CPUShares=10 | |
# IO, cgroup v1. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
run_uid="" | |
run_gid="" | |
prev="" | |
filtered_args=() | |
for var in "$@"; do | |
if [ "${var}" == "-o" ]; then | |
prev="${var}" |