lua-resty-masterpid

Get the pid of nginx master process

$ opm get chronolaw/lua-resty-masterpid

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())

Authors

chronolaw

License

2bsd

Dependencies

luajit

Versions