summaryrefslogtreecommitdiff
path: root/src/commit/commit-algorithm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commit/commit-algorithm.cpp')
-rw-r--r--src/commit/commit-algorithm.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/commit/commit-algorithm.cpp b/src/commit/commit-algorithm.cpp
index 80567f0..a5d3415 100644
--- a/src/commit/commit-algorithm.cpp
+++ b/src/commit/commit-algorithm.cpp
@@ -1219,6 +1219,11 @@ commit::doCommit(Cstore& cs, CfgNode& cfg1, CfgNode& cfg2)
cst = ((s > 0) ? "PARTIAL" : "FAILURE");
}
+ if (s > 0) {
+ // notify other users in config mode
+ system("/opt/vyatta/sbin/vyatta-cfg-notify");
+ }
+
if (!cs.commitConfig(proot)) {
OUTPUT_USER("Failed to generate committed config\n");
ret = false;