[Unit] Description=SmartBotic Runner Service Documentation=https://github.com/smartbotic/smartbotic After=network.target smartbotic-webserver.service Requires=smartbotic-webserver.service [Service] Type=simple WorkingDirectory=/data/smartbotic # Add delay to ensure webserver is fully started before runner tries to register ExecStartPre=/bin/sleep 3 ExecStart=/data/smartbotic/build/smartbotic-runner Restart=on-failure RestartSec=5 StandardOutput=journal StandardError=journal # Environment Environment=LOG_LEVEL=info Environment=RUNNER_ID=runner-1 Environment=NODES_PATH=/data/smartbotic/nodes # Resource limits LimitNOFILE=65536 [Install] WantedBy=default.target