Created
September 22, 2016 04:30
-
-
Save briandeheus/49ff05fb516483cb3da2f82396a623c8 to your computer and use it in GitHub Desktop.
Chronos Simple Service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from time import sleep | |
from lib import * | |
import signal | |
if __name__ == '__main__': | |
signal.signal(signal.SIGTERM, handle_sigterm) | |
write_to_file('Starting Chronos') | |
while True: | |
# Write the current time to file every 5 seconds | |
write_time_to_file() | |
sleep(5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment