diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2007-10-30 14:58:03 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2007-10-30 14:58:03 -0700 |
commit | d823a59cd64acad4afcf2d5e21a2e8c95546cc95 (patch) | |
tree | 9d47361f147f96f6e43d8f8fd3fe7b0c81cfe052 /src | |
parent | 653569b3768a4ebfc7d111864f3d165977db37a6 (diff) | |
download | vyatta-cfg-d823a59cd64acad4afcf2d5e21a2e8c95546cc95.tar.gz vyatta-cfg-d823a59cd64acad4afcf2d5e21a2e8c95546cc95.zip |
add configuration change notification.
Diffstat (limited to 'src')
-rw-r--r-- | src/cli_new.c | 2 | ||||
-rw-r--r-- | src/commit.c | 3 |
2 files changed, 4 insertions, 1 deletions
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; } |