annotate mod_proctitle/mod_proctitle.lua @ 3753:cf3247ec5e01

mod_register_web: Set a (configurable) HTTP app title This is understood by mod_http_index for example.
author Kim Alvefur <zash@zash.se>
date Sun, 17 Nov 2019 16:34:56 +0100
parents 94c4d4899a21
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1686
79ea92228101 Add proctitle module
Rob Hoelz <rob@hoelz.ro>
parents:
diff changeset
1 -- Changes the process name to 'prosody' rather than 'lua'/'lua5.1'
79ea92228101 Add proctitle module
Rob Hoelz <rob@hoelz.ro>
parents:
diff changeset
2 -- Copyright (C) 2015 Rob Hoelz
79ea92228101 Add proctitle module
Rob Hoelz <rob@hoelz.ro>
parents:
diff changeset
3 --
79ea92228101 Add proctitle module
Rob Hoelz <rob@hoelz.ro>
parents:
diff changeset
4 -- This file is MIT/X11 licensed.
79ea92228101 Add proctitle module
Rob Hoelz <rob@hoelz.ro>
parents:
diff changeset
5
1687
94c4d4899a21 Add minimal instructions for proctitle module
Rob Hoelz <rob@hoelz.ro>
parents: 1686
diff changeset
6 -- To use this module, you'll need the proctitle Lua library:
94c4d4899a21 Add minimal instructions for proctitle module
Rob Hoelz <rob@hoelz.ro>
parents: 1686
diff changeset
7 -- https://github.com/hoelzro/lua-proctitle
1686
79ea92228101 Add proctitle module
Rob Hoelz <rob@hoelz.ro>
parents:
diff changeset
8 local proctitle = require 'proctitle';
79ea92228101 Add proctitle module
Rob Hoelz <rob@hoelz.ro>
parents:
diff changeset
9
79ea92228101 Add proctitle module
Rob Hoelz <rob@hoelz.ro>
parents:
diff changeset
10 proctitle 'prosody';