Add example files for making a dbus activatable service

This commit is contained in:
AsamK 2015-12-16 21:34:57 +01:00
parent 27d9424f1e
commit 60981479d7
3 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,16 @@
<?xml version="1.0"?> <!--*-nxml-*-->
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<policy user="textsecure">
<allow own="org.asamk.TextSecure"/>
<allow send_destination="org.asamk.TextSecure"/>
<allow receive_sender="org.asamk.TextSecure"/>
</policy>
<policy context="default">
<allow send_destination="org.asamk.TextSecure"/>
<allow receive_sender="org.asamk.TextSecure"/>
</policy>
</busconfig>

View file

@ -0,0 +1,4 @@
[D-BUS Service]
Name=org.asamk.TextSecure
Exec=/bin/false
SystemdService=dbus-org.asamk.TextSecure.service

11
data/textsecure.service Normal file
View file

@ -0,0 +1,11 @@
[Unit]
Description=Send secure messages to TextSecure/Signal clients
[Service]
Type=dbus
ExecStart=%dir%/bin/textsecure-cli -u %number% daemon --system
User=textsecure
BusName=org.asamk.TextSecure
[Install]
Alias=dbus-org.asamk.TextSecure.service