a few fixes about initscripts under systemd