+exports.app_restart = (token, app_name, callback) ->
+ # Server requires you to fetch the app state before each call to change
+ # it, so there's no quicker way than just calling app_stop then app_start
+ async.waterfall [
+ (callback) -> exports.app_stop token, app_name, callback
+ (callback) -> exports.app_start token, app_name, callback
+ ], callback