print 'died:', pi.name, pi.command
register('test-service', ('sleep', '2'), notify, True)
assert 'test-service' in manager.services
assert 'test-service' not in manager.namemap
print 'died:', pi.name, pi.command
register('test-service', ('sleep', '2'), notify, True)
assert 'test-service' in manager.services
assert 'test-service' not in manager.namemap