get the pid of nginx master process
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/resty
.gitignore
LICENSE
README.md
dist.ini

README.md

lua-resty-masterpid

Get the pid of nginx master process

Installation

Please use opm, such as :

opm get chronolaw/lua-resty-masterpid

Usage

local masterpid = require "resty.masterpid"
ngx.say(masterpid())