I've got one that works now after discovering that RuntimeDirectory= will create a directory for you under /run.. I'll try to get you the pull request next week
On Fri, May 1, 2015 at 1:56 PM, Michael Jerris <mike@jerris.com> wrote:
If you have a working one, please get a pull request to us so we can review the changes.
ThanksMike
On May 1, 2015, at 1:40 PM, Vik Killa <vipkilla@gmail.com> wrote:
Hello,I modified the path variables in the systemd init file.My file looks like this:
;;;;; Author: Travis Cross <tc@traviscross.com>
[Unit]Description=freeswitchAfter=syslog.target network.target local-fs.target
[Service]; serviceType=forkingPIDFile=/usr/local/freeswitch/run/freeswitch.pidPermissionsStartOnly=trueExecStartPre=/bin/mkdir -p /usr/local/freeswitch/runExecStartPre=/bin/chown freeswitch:freeswitch /usr/local/freeswitch/runExecStart=/usr/bin/freeswitch -ncwait -nonatTimeoutSec=45sRestart=always; execWorkingDirectory=/usr/local/freeswitch/runUser=freeswitchGroup=freeswitchLimitCORE=infinityLimitNOFILE=100000LimitNPROC=60000;LimitSTACK=240LimitRTPRIO=infinityLimitRTTIME=7000000IOSchedulingClass=realtimeIOSchedulingPriority=2CPUSchedulingPolicy=rrCPUSchedulingPriority=89UMask=0007
[Install]WantedBy=multi-user.target
_________________________________________________________________________
On Fri, May 1, 2015 at 12:50 PM, Joseph Dickson <jdickson@evolvetsi.com> wrote:
Happy Friday!
I'm having trouble using latest release systemd unit file on Debian Jessie.. It looks like the unit file is the same in master, so I imagine the issue exists there too..
On my system (fresh Debian 8 install), I get the following failure when trying to start using the included unit file:
May 01 12:48:22 XXX systemd[9119]: Failed at step CHDIR spawning /bin/mkdir: No such file or directory
I'm new to systemd, but it looks like the problem is that the WorkingDirectory is set to /run/freeswitch. Trouble is that /run/freeswitch is created in an ExecStartPre statement. That's the best explanation I have for the CHDIR failure that systemd is complaining about.
It looks like the only way to get /run/freeswitch created soon enough to be used as a WorkingDirectory is the tmpfiles.d mechanism that systemd has. Am I on the right track, or am I missing an obvious solution?
Thanks!
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org