]>
git.ipfire.org Git - ipfire-2.x.git/blob - src/misc-progs/restartntpd.c
1 /* IPFire helper program - restartntpd
3 * Starts or stops the ntpd daemon
11 #include <sys/types.h>
24 safe_system("/etc/rc.d/init.d/ntp stop 2>&1 >/dev/null");
27 if ((fd
= open(CONFIG_ROOT
"/time/allowclients", O_RDONLY
)) != -1)
35 safe_system("/etc/rc.d/init.d/ntp start 2>&1 >/dev/null");