Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37916945
en ru br
Репозитории 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
www.altlinux.org/Changes

Группа :: Система/Настройка/Прочее
Пакет: 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);
 }
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin