AtulyamOne Tally Sync Agent - Linux (x86_64)
============================================

No Node.js or other software needs to be installed. The agent connects to
Tally's XML/ODBC port, so Tally (usually on a Windows machine) must be
reachable from this machine over the network.

1. In Tally: Gateway of Tally > F1 (Help) > Settings > Connectivity.
   Enable the ODBC/XML port (default 9000) and keep Tally open.
2. In AtulyamOne: Settings > Tally Integration. Enable Tally Sync, enter the
   Tally company name exactly as shown in Tally, and generate a pairing token.
3. Extract the archive:
     sudo mkdir -p /opt/tally-sync-agent
     sudo tar -xzf tally-sync-agent-*-linux-x64.tar.gz -C /opt/tally-sync-agent
4. Create the config:
     cd /opt/tally-sync-agent
     sudo cp config.example.json config.json
     sudo nano config.json
   Set platformBaseUrl, agentToken (from step 2) and tallyUrl
   (e.g. http://192.168.1.20:9000 for the Tally machine's address).
5. Run it in the foreground to check it works:
     sudo ./tally-sync-agent
   Logs are written to /opt/tally-sync-agent/logs/.

Run as a systemd service (optional):
  Create /etc/systemd/system/tally-sync-agent.service with:

    [Unit]
    Description=AtulyamOne Tally Sync Agent
    After=network-online.target

    [Service]
    WorkingDirectory=/opt/tally-sync-agent
    ExecStart=/opt/tally-sync-agent/tally-sync-agent
    Restart=always

    [Install]
    WantedBy=multi-user.target

  then: sudo systemctl daemon-reload && sudo systemctl enable --now tally-sync-agent
