added run-service.sh script to be used when running as a service