Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ if [ ! -f "$CFGFILE" ]; then
fi

# Run SMTP2Graph
node /bin/smtp2graph.js --receive.port=587
exec node /bin/smtp2graph.js --receive.port=587
5 changes: 5 additions & 0 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,8 @@ else
process.on('SIGINT', ()=>{
process.exit(0);
});

// Exit with code 0 when container is stopped
process.on('SIGTERM', ()=>{
process.exit(0);
});