Compare commits
	
		
			1 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 68692bdc83 | 
| @@ -1,7 +1,7 @@ | ||||
| import cliutils, docopt, json, logging, os, nre, random, sequtils, | ||||
|   times, timeutils | ||||
|  | ||||
| from posix import SIGTERM, SIGHUP, signal, kill | ||||
| from posix import SIGTERM, SIGHUP, signal, kill, Pid | ||||
| import strutils except toUpper | ||||
| from unicode import toUpper | ||||
|  | ||||
| @@ -11,7 +11,7 @@ type | ||||
|   DPConfig = tuple[planDir, dateFmt, pidfile, logfile, errfile: string, | ||||
|     notificationSecs: int] | ||||
|  | ||||
| const VERSION = "0.3.2" | ||||
| const VERSION = "0.3.3" | ||||
| const NOTE_TITLE = "Daily Notifier v" & VERSION | ||||
| const timeFmt = "HH:mm" | ||||
|  | ||||
| @@ -205,7 +205,7 @@ Options: | ||||
|       info "daily_notifier: not running" | ||||
|       quit(QuitSuccess) | ||||
|  | ||||
|     let pid = parseInt(readFile(cfg.pidfile).strip) | ||||
|     let pid: Pid = cast[Pid] (parseInt(readFile(cfg.pidfile).strip)) | ||||
|     info "daily_notifier: Killing process " & $pid | ||||
|  | ||||
|     if args["stop"]: discard kill(pid, SIGTERM) | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| # Package | ||||
|  | ||||
| version       = "0.3.2" | ||||
| version       = "0.3.3" | ||||
| author        = "Jonathan Bernard" | ||||
| description   = "Little programs that reads my daily plan and notifies me of upcoming events." | ||||
| license       = "MIT" | ||||
| @@ -8,5 +8,5 @@ bin           = @["daily_notifier", "deploy_plans_via_ftp"] | ||||
|  | ||||
| # Dependencies | ||||
|  | ||||
| requires @["nim >= 0.15.0", "docopt", "timeutils", "tempfile", "cliutils"] | ||||
| requires @["nim >= 0.18.0", "docopt", "timeutils", "tempfile", "cliutils"] | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user