-
-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add systemd system and user service units for the D-Bus services
The D-Bus system service (the mechanism) becomes a systemd system service, and the D-Bus session service (the applet) becomes a systemd user service. In both cases, when systemd is used for service activation, this allows placing the blueman-related process in its own cgroup (and applying systemd resource control and life-cycle tracking), whereas without these units the blueman processes would be part of the dbus.service cgroup. dbus running under systemd has provided system service activation via systemd for some time. User service activation via systemd is a recent addition (D-Bus 1.10) and not always enabled, but installing the necessary metadata is harmless in any case.
- Loading branch information
Showing
8 changed files
with
33 additions
and
1 deletion.
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
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,7 @@ | ||
[Unit] | ||
Description=Bluetooth management applet | ||
|
||
[Service] | ||
Type=dbus | ||
BusName=org.blueman.Applet | ||
ExecStart=@BINDIR@/blueman-applet |
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,7 @@ | ||
[Unit] | ||
Description=Bluetooth management mechanism | ||
|
||
[Service] | ||
Type=dbus | ||
BusName=org.blueman.Mechanism | ||
ExecStart=@LIBEXECDIR@/blueman-mechanism |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
[D-BUS Service] | ||
Name=org.blueman.Applet | ||
Exec=@BINDIR@/blueman-applet | ||
SystemdService=blueman-applet.service |
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
Name=org.blueman.Mechanism | ||
Exec=@LIBEXECDIR@/blueman-mechanism | ||
User=root | ||
SystemdService=blueman-mechanism.service |