mirror of
https://github.com/sched-ext/scx.git
synced 2024-11-25 20:20:23 +00:00
951a3d66bc
Signed-off-by: Piotr Gorski <lucjan.lucjanov@gmail.com>
12 lines
308 B
Bash
Executable File
12 lines
308 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
# Check the status of the service
|
|
if /etc/init.d/scx status > /dev/null; then
|
|
echo "The service is active. Restarting..."
|
|
/usr/bin/rc-service scx restart
|
|
echo "Service has been restarted."
|
|
else
|
|
echo "The service is not active."
|
|
fi
|