Startup applications can be controlled using terminal like that
Sorry, I've never tried anything like that.