File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ proc main {} {
183
183
}
184
184
185
185
186
- set piderr [create-pidfile ~/.fruho/fruho.pid ]
186
+ set piderr [create-pidfile [model PIDFILE] ]
187
187
if {$piderr ne " " } {
188
188
exit -nosave $piderr
189
189
}
@@ -206,7 +206,7 @@ proc main-exit {{arg ""}} {
206
206
model save
207
207
}
208
208
# ignore if problems occurred in deleting pidfile
209
- delete-pidfile ~/.fruho/fruho.pid
209
+ delete-pidfile [model PIDFILE]
210
210
set ::until_exit 1
211
211
catch {close [$::model::Ffconn_sock }
212
212
catch {close $::model::Openvpnlog }
Original file line number Diff line number Diff line change @@ -153,6 +153,9 @@ proc ::model::INIFILE {} {
153
153
proc ::model::LOGFILE {} {
154
154
return [file join [model CONFIGDIR] fruho.log]
155
155
}
156
+ proc ::model::PIDFILE {} {
157
+ return [file join [model CONFIGDIR] fruho.pid]
158
+ }
156
159
proc ::model::OPENVPNLOGFILE {} {
157
160
return [file join [model CONFIGDIR] openvpn.log]
158
161
}
You can’t perform that action at this time.
0 commit comments