r10781: merging eventlog and svcctl code from trunk