fixed service script so that logs is not owned by root when running with sudo