|
suricata
|

Go to the source code of this file.
Functions | |
| int | SCPidfileCreate (const char *) |
| Write a pid file (used at the startup) This commonly needed by the init scripts. More... | |
| void | SCPidfileRemove (const char *) |
| Remove the pid file (used at the startup) More... | |
| int | SCPidfileTestRunning (const char *pid_filename) |
| Check the Suricata pid file (used at the startup) More... | |
Definition in file util-pidfile.h.
| int SCPidfileCreate | ( | const char * | pidfile | ) |
Write a pid file (used at the startup) This commonly needed by the init scripts.
| pointer | to the name of the pid file to write (optarg) |
| 0 | if succes |
| -1 | on failure |
Definition at line 42 of file util-pidfile.c.
References len, O_NOFOLLOW, SCEnter, SCLogError, and SCReturnInt.
| void SCPidfileRemove | ( | const char * | pid_filename | ) |
Remove the pid file (used at the startup)
| pointer | to the name of the pid file to write (optarg) |
Definition at line 83 of file util-pidfile.c.
Referenced by GlobalsDestroy().

| int SCPidfileTestRunning | ( | const char * | pid_filename | ) |
Check the Suricata pid file (used at the startup)
This commonly needed by the init scripts.
This function will fail if the PID file exists, but tries to log a meaningful message if appears Suricata is running, or if the PID file appears to be stale.
| pointer | to the name of the pid file to write (optarg) |
| 0 | if succes |
| -1 | on failure |
Definition at line 105 of file util-pidfile.c.
References SCLogError.