Created
May 5, 2020 05:49
-
-
Save Ovis/61b61e2d28b1ddd9987eb94046414170 to your computer and use it in GitHub Desktop.
MQTTClient Systemd
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
[Unit] | |
Description=MQTT Home Client | |
DefaultDependencies=no | |
ConditionPathExists=[MQTTクライアントのディレクトリパス] | |
Wants=network.target | |
After=network.target | |
[Service] | |
Type=oneshot | |
RemainAfterExit=no | |
ExecStart=[.NET Coreの絶対パス]/dotnet [MQTTクライアント(.dll)の絶対パス] | |
SyslogIdentifier=MqttHomeClient | |
WorkingDirectory=[MQTTクライアントのディレクトリパス] | |
Environment=ASPNETCORE_ENVIRONMENT=Production | |
KillMode=process | |
[Install] | |
WantedBy = multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment