]>
git.ipfire.org Git - ipfire-2.x.git/blob - src/misc-progs/restartntpd.c
1 /* Ipcop helper program - restartntpd
3 * Starts or stops the ntpd daemon
5 * (c) Darren Critchley 2003
7 * $Id: restartntpd.c,v 1.5 2003/12/19 14:29:09 riddles Exp $
15 #include <sys/types.h>
28 safe_system("/etc/rc.d/init.d/ntp stop 2> /dev/null");
31 if ((fd
= open(CONFIG_ROOT
"/time/allowclients", O_RDONLY
)) != -1)
39 safe_system("/etc/rc.d/init.d/ntp start");