We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8042b6f commit ccd1d46Copy full SHA for ccd1d46
1 file changed
app/provdb_shutdown.cpp
@@ -0,0 +1,22 @@
1
+#include "chimbuko/ad/ADProvenanceDBclient.hpp"
2
+
3
+using namespace chimbuko;
4
5
+int main(int argc, char** argv){
6
+#ifdef ENABLE_PROVDB
7
+ if(argc != 2){
8
+ std::cout << "Usage: provdb_shutdown <server address e.g. ofi+tcp;ofi_rxm://172.17.0.4:5000>" << std::endl;
9
+ return 1;
10
+ }
11
+ ADProvenanceDBclient ad(0);
12
+ ad.connect(argv[1], 1);
13
+ ad.stopServer();
14
+ ad.disconnect();
15
16
+ return 0;
17
+#else
18
+ std::cout << "ProvDB not in use" << std::endl;
19
20
+#endif
21
+}
22
0 commit comments