mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 02:20:39 +00:00
Implement socket/tcp for daemon command
This commit is contained in:
parent
7706a02e1b
commit
81a11dc977
19 changed files with 785 additions and 240 deletions
20
data/signal-cli-socket.service
Normal file
20
data/signal-cli-socket.service
Normal file
|
@ -0,0 +1,20 @@
|
|||
[Unit]
|
||||
Description=Send secure messages to Signal clients
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
Requires=signal-cli-socket.socket
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Environment="SIGNAL_CLI_OPTS=-Xms2m"
|
||||
ExecStart=%dir%/bin/signal-cli --config /var/lib/signal-cli daemon
|
||||
User=signal-cli
|
||||
# JVM always exits with 143 in reaction to SIGTERM signal
|
||||
SuccessExitStatus=143
|
||||
StandardInput=socket
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
|
||||
[Install]
|
||||
Also=signal-cli-socket.socket
|
||||
WantedBy=default.target
|
Loading…
Add table
Add a link
Reference in a new issue