Hi. I'm trying to write a script that does a few things and then restarts the X server. I've tried (as root):
	And:
	And even:
	But each time, KDM does not start back up after stopping. If I log into the console and issue the sudo /etc/init.d/kdm start command from there, it comes up fine, though. Does anyone know why this won't work or if there's a better way? I had a similar problem on openSUSE a while ago and was able to solve it by introducing a pause before starting (i.e. the third snippet above). But the same trick does not work for Kubuntu.
							
						
					Code:
	
	/etc/init.d/kdm restart
Code:
	
	/etc/init.d/kdm stop /etc/init.d/kdm start
Code:
	
	/etc/init.d/kdm stop sleep 5 /etc/init.d/kdm start






Comment