mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Add example files for making a dbus activatable service
This commit is contained in:
parent
27d9424f1e
commit
60981479d7
3 changed files with 31 additions and 0 deletions
16
data/org.asamk.TextSecure.conf
Normal file
16
data/org.asamk.TextSecure.conf
Normal 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>
|
4
data/org.asamk.TextSecure.service
Normal file
4
data/org.asamk.TextSecure.service
Normal 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
11
data/textsecure.service
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue