File tree 3 files changed +7
-0
lines changed
3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -197,6 +197,7 @@ func checkCmd(m []byte) {
197
197
} else if strings .HasPrefix (sl , "broadcast" ) {
198
198
go broadcast (s )
199
199
} else if strings .HasPrefix (sl , "restart" ) {
200
+ log .Println ("Received restart from the daemon. Why? Boh" )
200
201
restart ("" )
201
202
} else if strings .HasPrefix (sl , "exit" ) {
202
203
exit ()
@@ -266,6 +267,7 @@ func exit() {
266
267
}
267
268
268
269
func restart (path string ) {
270
+ log .Println ("called restart" , path )
269
271
// relaunch ourself and exit
270
272
// the relaunch works because we pass a cmdline in
271
273
// that has serial-port-json-server only initialize 5 seconds later
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ func addRebootTrayElement() {
55
55
<- reboot_tray .ClickedCh
56
56
systray .Quit ()
57
57
log .Println ("Restarting now..." )
58
+ log .Println ("Restart because addReebotTrayElement" )
58
59
restart ("" )
59
60
}()
60
61
}
@@ -78,6 +79,7 @@ func setupSysTrayReal() {
78
79
}
79
80
systray .Quit ()
80
81
* hibernate = true
82
+ log .Println ("Restart becayse setup went wrong?" )
81
83
restart ("" )
82
84
}()
83
85
@@ -113,6 +115,7 @@ func setupSysTrayHibernate() {
113
115
go func () {
114
116
<- mOpen .ClickedCh
115
117
* hibernate = false
118
+ log .Println ("Restart for hubernation" )
116
119
restart ("" )
117
120
}()
118
121
Original file line number Diff line number Diff line change @@ -325,6 +325,8 @@ func (u *Updater) update() error {
325
325
//shutil.CopyFile(*configIni, *configIni+".bak", false)
326
326
//os.Remove(*configIni)
327
327
328
+ log .Println ("Restarting because update!" )
329
+
328
330
restart (path )
329
331
//addRebootTrayElement()
330
332
You can’t perform that action at this time.
0 commit comments