[Unit] Description=AnythingLLM Document Collector Documentation=https://docs.anythingllm.com After=network.target anythingllm-server.service BindsTo=anythingllm-server.service [Service] Type=simple User={{ anythingllm_user }} Group={{ anythingllm_group }} WorkingDirectory={{ anythingllm_directory }}/app/collector EnvironmentFile={{ anythingllm_directory }}/app/server/.env Environment=NODE_ENV=production ExecStart=/usr/bin/node index.js Restart=on-failure RestartSec=10 StandardOutput=journal StandardError=journal SyslogIdentifier=anythingllm-collector # Security hardening NoNewPrivileges=true PrivateTmp=true ProtectSystem=strict ProtectHome=true ReadWritePaths={{ anythingllm_directory }} [Install] WantedBy=multi-user.target