Tackling init scripts to make them crossplatform