# systemd unit for iz, the family task board. # # This file is installed by hand. Nothing enables it automatically: copy it to # /etc/systemd/system/iz.service, run `systemctl daemon-reload`, then enable and # start it yourself. See README.md, "First run". [Unit] Description=iz family task board After=network-online.target Wants=network-online.target StartLimitIntervalSec=60 StartLimitBurst=5 [Service] Type=simple User=iz Group=iz ExecStart=/usr/local/bin/iz --config /etc/iz/iz.toml serve WorkingDirectory=/var/lib/iz StateDirectory=iz StateDirectoryMode=0700 Restart=on-failure RestartSec=5 UMask=0077 # Hardening NoNewPrivileges=yes ProtectSystem=strict # Only the data directory is writable: database, iz.key, attachments, backups. ReadWritePaths=/var/lib/iz ProtectHome=yes PrivateTmp=yes PrivateDevices=yes ProtectKernelTunables=yes ProtectKernelModules=yes ProtectKernelLogs=yes ProtectControlGroups=yes ProtectClock=yes ProcSubset=pid RestrictSUIDSGID=yes RestrictRealtime=yes RestrictNamespaces=yes RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 LockPersonality=yes MemoryDenyWriteExecute=yes SystemCallArchitectures=native SystemCallFilter=@system-service SystemCallFilter=~@privileged ProtectProc=invisible ProcSubset=pid RemoveIPC=yes PrivateMounts=yes KeyringMode=private MemoryMax=1G SystemCallErrorNumber=EPERM CapabilityBoundingSet= AmbientCapabilities= KeyringMode=private [Install] WantedBy=multi-user.target