-/* Ipcop helper program - restartntpd
+/* IPFire helper program - restartntpd
*
* Starts or stops the ntpd daemon
- *
- * (c) Darren Critchley 2003
- *
- * $Id: restartntpd.c,v 1.5 2003/12/19 14:29:09 riddles Exp $
*
*/
if (!(initsetuid()))
exit(1);
- safe_system("/etc/rc.d/init.d/ntp stop 2> /dev/null");
+ safe_system("/etc/rc.d/init.d/ntp stop 2>&1 >/dev/null");
sleep(3);
if ((fd = open(CONFIG_ROOT "/time/allowclients", O_RDONLY)) != -1)
if (enable)
{
- safe_system("/etc/rc.d/init.d/ntp start");
+ safe_system("/etc/rc.d/init.d/ntp start 2>&1 >/dev/null");
}
return 0;
}