Added Service lock

Because OS needs a lock file to determine that the service is actually
running or not. If no lock file is found, the service will be forcefully
terminated because OS thinks no service is running.