14 lines
405 B
Plaintext
14 lines
405 B
Plaintext
if systemctl is-active --quiet kysdk-dbus.service; then
|
|
echo "kysdk-dbus.service is active, restarting..."
|
|
systemctl restart kysdk-dbus.service
|
|
else
|
|
echo "kysdk-dbus.service is not active"
|
|
fi
|
|
|
|
if systemctl is-active --quiet kysdk-net.service; then
|
|
echo "kysdk-net.service is active, restarting..."
|
|
systemctl restart kysdk-net.service
|
|
else
|
|
echo "kysdk-net.service is not active"
|
|
fi
|