Skip to content
This repository was archived by the owner on Dec 4, 2020. It is now read-only.

Commit e142a86

Browse files
committed
Now that the sysadm service PID issue has been cleaned up, re-enable the service running check when launching the localhost client.
1 parent 490533f commit e142a86

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src-qt5/Core/sysadm-client.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,7 @@ bool sysadm_client::localhostAvailable(){
156156
bool sysadm_client::localhostRunning(){
157157
//If the local server is running
158158
#ifdef __FreeBSD__
159-
if(QFile::exists("/var/run/sysadm.pid")){
160-
return true; //(0 == system("pgrep -F /var/run/sysadm.pid"));
161-
}
159+
return (0 == system("service sysadm status"));
162160
#endif
163161
return false;
164162
}

0 commit comments

Comments
 (0)