mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-18 18:43:10 +08:00
9 lines
231 B
Bash
9 lines
231 B
Bash
#!/bin/bash
|
|
|
|
# Check if systemctl exists, does not exist in docker containers
|
|
SCTL=$(which systemctl >/dev/null; echo $?)
|
|
|
|
if [ "$SCTL" -eq "0" ]; then
|
|
# Reload systemd because of new service file
|
|
systemctl daemon-reload
|
|
fi |