Service: use user textsecure-cli
This commit is contained in:
parent
df0ae3b8dd
commit
506bc5df13
@ -57,7 +57,7 @@ For dbus support you need jni/unix-java.so installed on your system (Debian: lib
|
|||||||
### System bus
|
### System bus
|
||||||
|
|
||||||
To run on the system bus you need to take some additional steps.
|
To run on the system bus you need to take some additional steps.
|
||||||
It’s advisable to run textsecure-cli as a separate unix user, the following steps assume you created a user named *textsecure*.
|
It’s advisable to run textsecure-cli as a separate unix user, the following steps assume you created a user named *textsecure-cli*.
|
||||||
These steps, executed as root, should work on all distributions using systemd.
|
These steps, executed as root, should work on all distributions using systemd.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
|
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
|
||||||
|
|
||||||
<busconfig>
|
<busconfig>
|
||||||
<policy user="textsecure">
|
<policy user="textsecure-cli">
|
||||||
<allow own="org.asamk.TextSecure"/>
|
<allow own="org.asamk.TextSecure"/>
|
||||||
<allow send_destination="org.asamk.TextSecure"/>
|
<allow send_destination="org.asamk.TextSecure"/>
|
||||||
<allow receive_sender="org.asamk.TextSecure"/>
|
<allow receive_sender="org.asamk.TextSecure"/>
|
||||||
|
@ -4,7 +4,7 @@ Description=Send secure messages to TextSecure/Signal clients
|
|||||||
[Service]
|
[Service]
|
||||||
Type=dbus
|
Type=dbus
|
||||||
ExecStart=%dir%/bin/textsecure-cli -u %number% daemon --system
|
ExecStart=%dir%/bin/textsecure-cli -u %number% daemon --system
|
||||||
User=textsecure
|
User=textsecure-cli
|
||||||
BusName=org.asamk.TextSecure
|
BusName=org.asamk.TextSecure
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user