mirror of
https://github.com/sched-ext/scx.git
synced 2024-11-28 21:50:23 +00:00
13 lines
339 B
Plaintext
13 lines
339 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||
|
|
||
|
# Check the status of the service
|
||
|
if systemctl is-active --quiet scx.service; then
|
||
|
echo "The service is active. Restarting..."
|
||
|
systemctl daemon-reload
|
||
|
systemctl restart scx.service
|
||
|
echo "Service has been restarted."
|
||
|
else
|
||
|
echo "The service is not active."
|
||
|
fi
|