eleven / messenger Public

Clone
git clone https://amadan.net/eleven/messenger

Plain git — no account needed to clone.

Download

Download this file

1[Unit]
2Description=lchat auto-updater (one release-channel update pass)
3After=network-online.target
4Wants=network-online.target
5
6[Service]
7Type=oneshot
8# Optional override: LCHAT_UPDATE_MANIFEST_URL (point a box at another feed).
9EnvironmentFile=-/data/update.env
10ExecStart=/opt/lchat/lchat update run
11
12# --- hardening (see docs/instance-router.md § Hardening) ---
13# Runs as ROOT deliberately, like lchat-control: an update pass writes the
14# version store (/opt/lchat) and restarts instance units via systemctl. It is
15# fired by lchat-update.timer, never routed or listening. NoNewPrivileges and
16# the syscall filter are omitted for the systemctl child; the rest applies.
17ProtectHome=yes
18PrivateTmp=yes
19PrivateDevices=yes
20ProtectClock=yes
21ProtectHostname=yes
22ProtectKernelTunables=yes
23ProtectKernelModules=yes
24ProtectKernelLogs=yes
25RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
26RestrictNamespaces=yes
27RestrictRealtime=yes
28LockPersonality=yes
29MemoryDenyWriteExecute=yes
30MemoryMax=256M
31TasksMax=64
32