f = file('/etc/conserver/conf.d/'+hostname, 'w')
f.write(contents)
f.close()
- p = subprocess.Popen(['/etc/init.d/conserver-server', 'reload'],
+ p = subprocess.Popen(['/usr/sbin/invoke-rc.d', 'conserver-server', 'reload'],
stdout=subprocess.PIPE)
p.wait()
return 0