jhyland87

Well-Known Member
Dec 8, 2008
153
0
66
I am trying to make a script that will restart services via php. Here is what I have

PHP:
		$service = 'pureftpd';
		print $xmlapi-> restartsrv($service);
		echo "<br>";
		$service = 'proftpd';
		print $xmlapi-> restartsrv($service);
		echo "<br>";
		$service = 'ftpserver';
		print $xmlapi-> restartsrv($service);
Here is what it returns
0 pureftpd No such service
0 proftpd No such service
0 ftpserver No such service
Any idea? I know im using pure-ftpd
pure-ftpd 0:eek:ff 1:eek:ff 2:eek:ff 3:eek:n 4:eek:ff 5:eek:n 6:eek:ff
 

jhyland87

Well-Known Member
Dec 8, 2008
153
0
66
Awesome, will try that, any idea on the full server reboot? Thats kind of a big one right now. I have an extra cpanel server, but only for a few days, I dont wanna test rebooting on a production server, lol