From d823a59cd64acad4afcf2d5e21a2e8c95546cc95 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Tue, 30 Oct 2007 14:58:03 -0700 Subject: add configuration change notification. --- src/cli_new.c | 2 +- src/commit.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/cli_new.c b/src/cli_new.c index 52a03d3..07f0697 100644 --- a/src/cli_new.c +++ b/src/cli_new.c @@ -215,7 +215,7 @@ void di(vtw_sorted *srtp) printf("%u %u\n", i, *(unsigned int *)(srtp->ptrs[i])); } -#define LOCK_FILE "/var/lock/vyatta_cfg_lock" +#define LOCK_FILE "/opt/vyatta/config/.lock" static void release_config_lock() diff --git a/src/commit.c b/src/commit.c index 9aafedd..0d029f0 100644 --- a/src/commit.c +++ b/src/commit.c @@ -1360,6 +1360,9 @@ static int fin_commit(boolean ok) system(command); my_free(command); + /* notify other users in config mode */ + system("/opt/vyatta/sbin/vyatta-cfg-notify"); + return 0; } -- cgit v1.2.3