I recently upgraded one of my boxes to FreeBSD 11 r303750 (beta-3). After the upgrade I noticed that one of the services would no longer start... After digging into it, I found that the new var ${name}_login_class var's defaults to the daemon login class and by default, the daemon class resource limit on memory is set to 128M. This maybe an issue for old rc scripts. So my question is this, should old rc scripts adapt to this new default, or should the default be changed to avoid issues like I just found? The port this issue was found is audio/teamspeak3-server. If installed on FreeBSD 11+ it will fail to start with... 2016-08-06 17:07:27.946432|CRITICAL|ServerLibPriv | |Server() DatabaseError out of memory Ultima
Kurt Jaeger
2016-Aug-06 17:16 UTC
rc scripts new login_class, default can break old rc scripts
Hi!> So my question is this, should old rc scripts adapt to this new default, or > should the default be changed to avoid issues like I just found?There should be a PR about this, and please give it to re (release engineering). -- pi at opsec.eu +49 171 3101372 4 years to go !
Eugene Grosbein
2016-Aug-06 17:19 UTC
rc scripts new login_class, default can break old rc scripts
07.08.2016 0:10, Ultima ?????:> I recently upgraded one of my boxes to FreeBSD 11 r303750 (beta-3). After > the upgrade I noticed that one of the services would no longer start... > > After digging into it, I found that the new var ${name}_login_class var's > defaults to the daemon login class and by default, the daemon class > resource limit on memory is set to 128M. This maybe an issue for old rc > scripts. > > So my question is this, should old rc scripts adapt to this new default, or > should the default be changed to avoid issues like I just found? The port > this issue was found is audio/teamspeak3-server. If installed on FreeBSD > 11+ it will fail to start with... > 2016-08-06 17:07:27.946432|CRITICAL|ServerLibPriv | |Server() > DatabaseError out of memoryThe meaning of default limit it that it should enforce strict limit my default, so runaway process could not harm other processess. If a port maker knows this particular server generally consumes more memory, it should change default limit to suitable value using rc script. If not, that is responsibility of local administrator to change limit for its own installation and system/port maker should supply administrator with means to do so.