https://github.com/chronolaw/lua-resty-masterpid
get the pid of nginx master process
https://github.com/chronolaw/lua-resty-masterpid
lua openresty opm
Last synced: 7 months ago
JSON representation
get the pid of nginx master process
- Host: GitHub
- URL: https://github.com/chronolaw/lua-resty-masterpid
- Owner: chronolaw
- License: bsd-2-clause
- Created: 2017-12-26T05:19:54.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-11-05T08:29:01.000Z (about 6 years ago)
- Last Synced: 2025-05-13T10:50:01.369Z (9 months ago)
- Topics: lua, openresty, opm
- Language: Lua
- Size: 3.91 KB
- Stars: 4
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lua-resty-masterpid
Get the pid of nginx master process
## Installation
Please use `opm`, such as :
```lua
opm get chronolaw/lua-resty-masterpid
```
## Usage
```lua
local masterpid = require "resty.masterpid"
ngx.say(masterpid())
```