scx-upstream/libalpm/systemd/scx-systemd-restart
Piotr Gorski 1fbf4f4f9b
Add pacman hooks for systemd
Signed-off-by: Piotr Gorski <lucjan.lucjanov@gmail.com>
2024-05-13 15:52:06 +02:00

13 lines
339 B
Bash
Executable File

#!/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