File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,17 @@ import Foundation
33 @preconcurrency import SwiftGlibc
44#endif
55
6+ // NOTE: Not necessary when using Logging
7+ // https://github.com/apple/swift-log
68// Make sure print() output is instant
79setlinebuf ( stdout)
810
911print ( " Hello world " )
1012print ( " This should be visible right after starting the application " )
1113
14+ // NOTE: If you are using ServiceLifecycle, delete this
15+ // https://github.com/swift-server/swift-service-lifecycle
16+ // Documentation: https://swiftpackageindex.com/swift-server/swift-service-lifecycle/main/documentation/servicelifecycle/how-to-adopt-servicelifecycle-in-libraries#Graceful-shutdown
1217let signalHandlers = [
1318 SIGINT, // ctrl+C in interactive mode
1419 SIGTERM, // docker container stop container_name
You can’t perform that action at this time.
0 commit comments