Set KillMode=mixed in the systemd service file.