-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[471053] Add systemd support and services.
Add possibility to notify systemd that service is fully started. Also add reference service files. Change-Id: Ib4e39c8406ab6c15e1b88f197ae8f91c3e402023 Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=471053 Signed-off-by: Tomas Novotny <[email protected]>
- Loading branch information
Showing
8 changed files
with
56 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
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
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,8 @@ | ||
Select appropriate systemd service based on your compile settings. If you | ||
enabled WITH_SYSTEMD, use mosquitto.service.notify, otherwise use | ||
mosquitto.service.simple. The service must be renamed to mosquitto.service | ||
before usage. | ||
|
||
With WITH_SYSTEMD mosquitto will notify a complete startup after | ||
initialization. This means that follow-up units can be started after full | ||
initialization of mosquitto (i.e. sockets are opened). |
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,11 @@ | ||
[Unit] | ||
Description=Mosquitto MQTT v3.1/v3.1.1 Broker | ||
|
||
[Service] | ||
Type=notify | ||
NotifyAccess=main | ||
ExecStart=/usr/sbin/mosquitto | ||
Restart=on-failure | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
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,9 @@ | ||
[Unit] | ||
Description=Mosquitto MQTT v3.1/v3.1.1 Broker | ||
|
||
[Service] | ||
ExecStart=/usr/sbin/mosquitto | ||
Restart=on-failure | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
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