From e49f8c65f706a280d8679af93d91da3abef88757 Mon Sep 17 00:00:00 2001 From: Travis Cross Date: Tue, 22 Sep 2015 05:21:27 +0000 Subject: [PATCH] Remove explicit set of WorkingDirectory In the systemd unit for FS/debian, if the WorkingDirectory is not set then it defaults to '/'. This is fine for FS, and is a common and expected chdir choice for daemons. We had previously set this to /run/freeswitch. Due to Debian having systemd-coredump(8) disabled, this was causing core files to be written to /run/freeswitch, which is a bad place for them as it's mounted on tmpfs. It's better to leave FS as running on '/'. This will prevent core files from being written unless the user adjusts `sysctl kernel.core_pattern`, which is a reasonable thing to expect if the user wants these files. Core files can be huge, and having them go anywhere unexpectedly can be a problem. When Debian adds the systemd-coredumps support this will all work nicely and automatically. ref: http://www.freedesktop.org/software/systemd/man/coredump.conf.html ref: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=744964 FS-7909 --- debian/freeswitch-systemd.freeswitch.service | 1 - 1 file changed, 1 deletion(-) diff --git a/debian/freeswitch-systemd.freeswitch.service b/debian/freeswitch-systemd.freeswitch.service index 688af6a5ae..ee7580f249 100644 --- a/debian/freeswitch-systemd.freeswitch.service +++ b/debian/freeswitch-systemd.freeswitch.service @@ -15,7 +15,6 @@ Restart=always ; exec RuntimeDirectory=freeswitch RuntimeDirectoryMode=0755 -WorkingDirectory=/run/freeswitch User=freeswitch Group=freeswitch LimitCORE=infinity