Skip to content

Commit

Permalink
Merge pull request #2724 from freenas/issues/kern_corefile_setting
Browse files Browse the repository at this point in the history
tkt-79419: Correct kern.corefile setting
  • Loading branch information
sonicaj committed Mar 7, 2019
2 parents bc043b8 + 327b80d commit 6b72ed0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/freenas/etc/sysctl.conf
Expand Up @@ -6,7 +6,6 @@
# of blocks after they have been in the queues for X seconds. It is critical
# that metadelay < dirdelay < filedelay and no fractions are allowed.

kern.corefile=/var/tmp/%N.core
kern.metadelay=3
kern.dirdelay=4
kern.filedelay=5
Expand Down
3 changes: 3 additions & 0 deletions src/middlewared/middlewared/plugins/sysdataset.py
Expand Up @@ -131,6 +131,9 @@ async def do_update(self, job, data):
@accepts(Bool('mount', default=True), Str('exclude_pool', default=None, null=True))
@private
async def setup(self, mount, exclude_pool=None):
# We default kern.corefile value
await run('sysctl', "kern.corefile='/var/tmp/%N.core'")

config = await self.config()

if not await self.middleware.call('system.is_freenas'):
Expand Down

0 comments on commit 6b72ed0

Please sign in to comment.