[Unit]
Description=AW-RUS browser-visible WebUI smoke check
After=network-online.target activitywatch-server.service aw-worktime-api.service
Wants=network-online.target activitywatch-server.service aw-worktime-api.service

[Service]
Type=oneshot
EnvironmentFile=/etc/activitywatch/aw-server.env
Environment=NODE_PATH=/usr/share/nodejs
Environment=AW_BROWSER_SMOKE_ENGINE=chromium-cli
Environment=HOME=/var/lib/activitywatch/browser-smoke
Environment=XDG_CONFIG_HOME=/var/lib/activitywatch/browser-smoke/.config
Environment=XDG_CACHE_HOME=/var/lib/activitywatch/browser-smoke/.cache
WorkingDirectory=/var/lib/activitywatch/browser-smoke
ExecStart=/usr/bin/node /usr/local/lib/aw-rus-browser-smoke/aw-webui-browser-smoke.mjs
TimeoutStartSec=180
User=activitywatch
Group=activitywatch
Nice=15
CPUQuota=25%
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/var/lib/activitywatch/browser-smoke
StandardOutput=journal
StandardError=journal
SyslogIdentifier=aw-browser-smoke
