mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
timectrl: Stop ntp daemon when disabled
Fixes #11000 Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -35,7 +35,7 @@ int main(int argc, char *argv[]) {
|
||||
safe_system("ln -fs ../init.d/ntp /etc/rc.d/rc6.d/K46ntpd >/dev/null 2>&1");
|
||||
safe_system("/etc/rc.d/init.d/ntp start");
|
||||
} else if (strcmp(argv[1], "disable") == 0) {
|
||||
safe_system("/etc/rc.d/init.d/ntpd stop");
|
||||
safe_system("/etc/rc.d/init.d/ntp stop");
|
||||
safe_system("rm -f /etc/rc.d/rc*.d/*ntpd >/dev/null 2>&1");
|
||||
} else {
|
||||
fprintf(stderr, "\nBad argument given.\n\ntimectrl (start|stop|restart)\n\n");
|
||||
|
||||
Reference in New Issue
Block a user