Skip to content

Commit 6745f08

Browse files
committed
feat(backup): stop backup on sigterm
1 parent 673a6eb commit 6745f08

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: bin/xud-backup

+5
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,8 @@ delete argv.$0;
7777
const backup = new Backup();
7878

7979
backup.start(argv);
80+
81+
process.on('SIGTERM', () => {
82+
backup.stop();
83+
console.info('SIGTERM signal received.');
84+
});

0 commit comments

Comments
 (0)