Originally this was gonna be used for a standalone service management script. As it turns out, it's a bad idea to do it this way.