In v7 --headless means "chat relay" (requires --relay) and yields a relay address, not a user contact address, so the bot could not be added as a contact. Run bot mode instead (-p PORT --create-bot-display-name), which needs no TTY and is restart-safe. simplex-address.py now creates the user contact address on first run (/_address + /_show_address), and bootstrap invokes it after the services start and prints the link.
20 lines
637 B
Plaintext
20 lines
637 B
Plaintext
[Unit]
|
|
Description=SemIf agent SimpleX Chat bot daemon
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
# Bot mode: a local WebSocket chat server with a bot user. Do NOT add
|
|
# --headless here — in SimpleX Chat v7 --headless means "chat relay" and
|
|
# requires --relay, which yields a relay address, not a user contact address.
|
|
ExecStart=@REPO@/.runtime/bin/simplex-chat -p @PORT@ -d @REPO@/.runtime/simplex/simplex_v1 -k "" --create-bot-display-name "@DISPLAY_NAME@"
|
|
Restart=always
|
|
RestartSec=10
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=semif-simplex
|
|
|
|
[Install]
|
|
WantedBy=default.target
|