---
name: "mfscgiserv"
section: "8"
platform: "linux"
package: "moosefs-cgiserv"
version: "4.57.5-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mfscgiserv"
---

# mfscgiserv(8)

start HTTP/CGI server for MooseFS monitoring

## NAME

mfscgiserv - start HTTP/CGI server for MooseFS monitoring

## SYNOPSIS

**mfscgiserv** \[**-H** *BIND\_HOST*\] \[**-P** *BIND\_PORT*\] \[**-R** *ROOT\_PATH*\] \[**-D** *DATA\_PATH*\] \[**-t** *LOCKTIMEOUT*\] \[**-f** \[**-v**\]\] \[*ACTION*\]

**mfscgiserv -h**

## DESCRIPTION

**mfscgiserv** is a very simple HTTP server capable of running CGI scripts for MooseFS monitoring.

## OPTIONS

- **-h**

  print usage information and exit

- **-H** *BIND\_HOST*

  local address to listen on (default: any)

- **-P** *BIND\_PORT*

  port to listen on (default: 9425)

- **-R** *ROOT\_PATH*

  local path to use as HTTP document root (default is CGIDIR set up at configure time)

- **-D** *DATA\_PATH*

  working directory (default: /var/lib/mfs)

- **-f**

  run in foreground, don't daemonize

- **-v**

  log requests on stderr

- **-t** *LOCKTIMEOUT*

  how long to wait for lockfile (in seconds; default is 60 seconds)

- *ACTION*

  is one of **start**, **stop**, **restart** or **test**. Default action is **restart**. The **test** action will yield one of two responses:  "mfscgiserv pid: PID" or "mfscgiserv is not running".

## COPYRIGHT

Copyright (C) 2025 Jakub Kruszona-Zawadzki, Saglabs SA

This file is part of MooseFS.

MooseFS is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2 (only).

MooseFS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with MooseFS; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA or visit http://www.gnu.org/licenses/gpl-2.0.html
