tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: import wip/ngircd



On Sat, Jan 18, 2020 at 02:25:49PM +0100, sxvghd%firemail.cc@localhost wrote:
> On 2020-01-14 20:05, nia wrote:
> > 
> > I think we usually put pidfiles in @VARBASE@/run/packagename.pid.
> > 
> > Usually pidfiles are also created by the software. inspircd has an
> > option
> > in its config file for specifying the pidfile location, and the example
> > config file is patched to match the rc script.
> Ok, there is a bit of a problem, ngircd drops all priviledges immediately
> (even before writing the pidfile), so I either have to make a directory
> somewhere
> owned by nobody/ngircd user or make it run as root all the way.

You can use OWN_DIRS_PERMS for this.

See chat/inspircd3/Makefile, it does it a lot.


Home | Main Index | Thread Index | Old Index