Permalink
Browse files

PIDFILE referenced to homedir instead of ~

  • Loading branch information...
hypatia2 committed Mar 5, 2016
1 parent e6f2236 commit c54d7ffe66915450000b8ff9109371a6835ebc8a
Showing with 5 additions and 2 deletions.
  1. +2 −2 fruho/main.tcl
  2. +3 −0 fruho/model.tcl
@@ -183,7 +183,7 @@ proc main {} {
}
set piderr [create-pidfile ~/.fruho/fruho.pid]
set piderr [create-pidfile [model PIDFILE]]
if {$piderr ne ""} {
exit-nosave $piderr
}
@@ -206,7 +206,7 @@ proc main-exit {{arg ""}} {
model save
}
# ignore if problems occurred in deleting pidfile
delete-pidfile ~/.fruho/fruho.pid
delete-pidfile [model PIDFILE]
set ::until_exit 1
catch {close [$::model::Ffconn_sock}
catch {close $::model::Openvpnlog}
@@ -153,6 +153,9 @@ proc ::model::INIFILE {} {
proc ::model::LOGFILE {} {
return [file join [model CONFIGDIR] fruho.log]
}
proc ::model::PIDFILE {} {
return [file join [model CONFIGDIR] fruho.pid]
}
proc ::model::OPENVPNLOGFILE {} {
return [file join [model CONFIGDIR] openvpn.log]
}

0 comments on commit c54d7ff

Please sign in to comment.