update startup & shutdown script