-d is a path prefix, so pass .runtime/simplex/simplex_v1 to keep the daemon DBs inside the profile dir. Also detect a changed rendered unit and restart already-running services so a rerun applies template changes.
17 lines
423 B
Plaintext
17 lines
423 B
Plaintext
[Unit]
|
|
Description=SemIf agent SimpleX Chat daemon
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=@REPO@/.runtime/bin/simplex-chat -p @PORT@ -d @REPO@/.runtime/simplex/simplex_v1 -k "" --relay --headless --user-display-name "@DISPLAY_NAME@"
|
|
Restart=always
|
|
RestartSec=10
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=semif-simplex
|
|
|
|
[Install]
|
|
WantedBy=default.target
|