better way to detect the usage of upstart.