Репозитории ALT
S: | 4.2.8p15-alt4 |
5.1: | 4.2.4-alt5.p7 |
4.1: | 4.2.4-alt3.p4.M41.2 |
4.0: | 4.2.2-alt1.p4.3 |
3.0: | 4.1.2-alt3 |
+backports: | 4.2.4-alt0.M30.3.p4 |
Группа :: Система/Настройка/Прочее
Пакет: ntp
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: ntp-4.1.2-alt-ntpd-pidfile.patch
Скачать
Скачать
--- ntp-4.1.2/ntpd/cmd_args.c.orig 2004-04-20 02:51:47 +0400
+++ ntp-4.1.2/ntpd/cmd_args.c 2004-04-20 02:58:50 +0400
@@ -193,6 +193,7 @@ getCmdOpts(
extern char *config_file;
int errflg;
int c;
+ const char *pidfile = "/var/run/ntpd.pid";
/*
* Initialize, initialize
@@ -273,7 +274,7 @@ getCmdOpts(
break;
case 'p':
- stats_config(STATS_PID_FILE, ntp_optarg);
+ pidfile = ntp_optarg;
break;
case 'P':
@@ -353,5 +354,7 @@ getCmdOpts(
#endif
exit(2);
}
- return;
+
+ if (pidfile && *pidfile)
+ stats_config(STATS_PID_FILE, pidfile);
}