Skip to content

Instantly share code, notes, and snippets.

@elico elico/fetch-task.sh
Created Jul 10, 2016

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

omidkosari commented Jul 17, 2016

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
You can’t perform that action at this time.