switch: add a -pidfile argument for use in init.d scripts