support startstop script