changing default expire time.
fixing restart mechanism for service.