Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ainame/Swift-Daemon
daemonize your swift scripts
https://github.com/ainame/Swift-Daemon
Last synced: about 1 month ago
JSON representation
daemonize your swift scripts
- Host: GitHub
- URL: https://github.com/ainame/Swift-Daemon
- Owner: ainame
- Created: 2017-03-03T05:31:52.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-03T07:11:09.000Z (almost 8 years ago)
- Last Synced: 2024-08-03T16:15:19.803Z (4 months ago)
- Language: Swift
- Size: 2.93 KB
- Stars: 23
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-inspiration - Swift-Daemon
README
## Swift-Daemon
You can daemonize any swift process.
`Daemon` can detach your swift script from shell.```swift
import Foundation
import DaemonDispatchQueue(label: "foo").async {
while true {
print(".")
sleep(1)
}
}Daemon.daemonize()
while true {
sleep(1)
}
```