Forked from bitbucket.org/kardianos/service