fixed bug where startup script would not be called when restarting weave