Skip to content

Instantly share code, notes, and snippets.

@elico
Created July 10, 2016 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elico/89b4789881f2b1f4a443e736b4302545 to your computer and use it in GitHub Desktop.
Save elico/89b4789881f2b1f4a443e736b4302545 to your computer and use it in GitHub Desktop.
ms-updates-logger-proxy
#!/usr/bin/env bash
lockfile -r 0 /tmp/store-fetcher.lock || exit 1
/usr/bin/store-fetcher -dir=/var/storedata
echo ""
echo ""
echo "removing lock file: /tmp/store-fetcher.lock"
rm -f /tmp/store-fetcher.lock
[Unit]
Description=ms-updates-store
#Requires=networking.service
[Service]
ExecStart=/usr/bin/ms-updates-logger-proxy_linux_amd64 -listen=:8080 -dir=/var/storedata
[Install]
WantedBy=multi-user.target
@omidkosari
Copy link

You should add following line to line 4 of fetch-task.sh

ulimit -n 65535

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment