forked from sched-ext/scx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Piotr Gorski <lucjan.lucjanov@gmail.com>
- Loading branch information
Showing
5 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[Trigger] | ||
Type = Path | ||
Operation = Upgrade | ||
Target = etc/default/scx | ||
Target = etc/systemd/journald@sched-ext.conf | ||
Target = usr/bin/scx_* | ||
Target = usr/lib/systemd/system/scx.service | ||
|
||
[Trigger] | ||
Type = Package | ||
Operation = Upgrade | ||
Target = scx-scheds | ||
Target = scx-scheds-git | ||
|
||
[Action] | ||
Description = Checking scx_scheduler... | ||
When = PostTransaction | ||
Exec = /usr/share/libalpm/scripts/scx-systemd-restart | ||
NeedsTargets |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Install the 'scx-systemd-restart' file to the '/usr/share/libalpm/scripts' directory | ||
install_data('scx-systemd-restart', install_dir: '/usr/share/libalpm/scripts') | ||
# Install the '90-scx-scheds-upgrade.hook' file to the '/usr/share/libalpm/hooks' directory | ||
install_data('90-scx-scheds-upgrade.hook', install_dir: '/usr/share/libalpm/hooks') |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/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 |
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
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