Discussion:
[Freeswitch-users] freeswitch systemd unit file for debian?
Joseph Dickson
2015-05-01 16:50:49 UTC
Permalink
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!

Joseph Dickson
***@evolvetsi.com
Vik Killa
2015-05-01 17:40:00 UTC
Permalink
Hello,
I modified the path variables in the systemd init file.
My file looks like this:

;;;;; Author: Travis Cross <***@traviscross.com>

[Unit]
Description=freeswitch
After=syslog.target network.target local-fs.target

[Service]
; service
Type=forking
PIDFile=/usr/local/freeswitch/run/freeswitch.pid
PermissionsStartOnly=true
ExecStartPre=/bin/mkdir -p /usr/local/freeswitch/run
ExecStartPre=/bin/chown freeswitch:freeswitch /usr/local/freeswitch/run
ExecStart=/usr/bin/freeswitch -ncwait -nonat
TimeoutSec=45s
Restart=always
; exec
WorkingDirectory=/usr/local/freeswitch/run
User=freeswitch
Group=freeswitch
LimitCORE=infinity
LimitNOFILE=100000
LimitNPROC=60000
;LimitSTACK=240
LimitRTPRIO=infinity
LimitRTTIME=7000000
IOSchedulingClass=realtime
IOSchedulingPriority=2
CPUSchedulingPolicy=rr
CPUSchedulingPriority=89
UMask=0007

[Install]
WantedBy=multi-user.target
Post by Joseph Dickson
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
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!
Joseph Dickson
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Michael Jerris
2015-05-01 17:56:45 UTC
Permalink
If you have a working one, please get a pull request to us so we can review the changes.

Thanks
Mike
Post by Vik Killa
Hello,
I modified the path variables in the systemd init file.
[Unit]
Description=freeswitch
After=syslog.target network.target local-fs.target
[Service]
; service
Type=forking
PIDFile=/usr/local/freeswitch/run/freeswitch.pid
PermissionsStartOnly=true
ExecStartPre=/bin/mkdir -p /usr/local/freeswitch/run
ExecStartPre=/bin/chown freeswitch:freeswitch /usr/local/freeswitch/run
ExecStart=/usr/bin/freeswitch -ncwait -nonat
TimeoutSec=45s
Restart=always
; exec
WorkingDirectory=/usr/local/freeswitch/run
User=freeswitch
Group=freeswitch
LimitCORE=infinity
LimitNOFILE=100000
LimitNPROC=60000
;LimitSTACK=240
LimitRTPRIO=infinity
LimitRTTIME=7000000
IOSchedulingClass=realtime
IOSchedulingPriority=2
CPUSchedulingPolicy=rr
CPUSchedulingPriority=89
UMask=0007
[Install]
WantedBy=multi-user.target
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..
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!
Joseph Dickson
_________________________________________________________________________
http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
Official FreeSWITCH Sites
http://www.freeswitch.org <http://www.freeswitch.org/>
http://confluence.freeswitch.org <http://confluence.freeswitch.org/>
http://www.cluecon.com <http://www.cluecon.com/>
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users>
http://www.freeswitch.org <http://www.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
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Joseph Dickson
2015-05-01 18:07:22 UTC
Permalink
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
Post by Michael Jerris
If you have a working one, please get a pull request to us so we can review the changes.
Thanks
Mike
Hello,
I modified the path variables in the systemd init file.
[Unit]
Description=freeswitch
After=syslog.target network.target local-fs.target
[Service]
; service
Type=forking
PIDFile=/usr/local/freeswitch/run/freeswitch.pid
PermissionsStartOnly=true
ExecStartPre=/bin/mkdir -p /usr/local/freeswitch/run
ExecStartPre=/bin/chown freeswitch:freeswitch /usr/local/freeswitch/run
ExecStart=/usr/bin/freeswitch -ncwait -nonat
TimeoutSec=45s
Restart=always
; exec
WorkingDirectory=/usr/local/freeswitch/run
User=freeswitch
Group=freeswitch
LimitCORE=infinity
LimitNOFILE=100000
LimitNPROC=60000
;LimitSTACK=240
LimitRTPRIO=infinity
LimitRTTIME=7000000
IOSchedulingClass=realtime
IOSchedulingPriority=2
CPUSchedulingPolicy=rr
CPUSchedulingPriority=89
UMask=0007
[Install]
WantedBy=multi-user.target
Post by Joseph Dickson
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
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!
Joseph Dickson
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.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
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.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
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
tilt
2015-05-12 18:17:38 UTC
Permalink
Hi Joseph, Any chance you can share your service file, I am having
issues myself trying to get freeswitch running with systemd.

Thank You,
-John
Post by Joseph Dickson
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
If you have a working one, please get a pull request to us so we
can review the changes.
Thanks
Mike
Post by Vik Killa
Hello,
I modified the path variables in the systemd init file.
[Unit]
Description=freeswitch
After=syslog.target network.target local-fs.target
[Service]
; service
Type=forking
PIDFile=/usr/local/freeswitch/run/freeswitch.pid
PermissionsStartOnly=true
ExecStartPre=/bin/mkdir -p /usr/local/freeswitch/run
ExecStartPre=/bin/chown freeswitch:freeswitch
/usr/local/freeswitch/run
ExecStart=/usr/bin/freeswitch -ncwait -nonat
TimeoutSec=45s
Restart=always
; exec
WorkingDirectory=/usr/local/freeswitch/run
User=freeswitch
Group=freeswitch
LimitCORE=infinity
LimitNOFILE=100000
LimitNPROC=60000
;LimitSTACK=240
LimitRTPRIO=infinity
LimitRTTIME=7000000
IOSchedulingClass=realtime
IOSchedulingPriority=2
CPUSchedulingPolicy=rr
CPUSchedulingPriority=89
UMask=0007
[Install]
WantedBy=multi-user.target
On Fri, May 1, 2015 at 12:50 PM, Joseph Dickson
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
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!
Joseph Dickson
_________________________________________________________________________
http://www.freeswitchsolutions.com
<http://www.freeswitchsolutions.com/>
Official FreeSWITCH Sites
http://www.freeswitch.org <http://www.freeswitch.org/>
http://confluence.freeswitch.org
<http://confluence.freeswitch.org/>
http://www.cluecon.com <http://www.cluecon.com/>
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org <http://www.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
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.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
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.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
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Joseph Dickson
2015-05-12 18:39:22 UTC
Permalink
John,

This is what I ended up with that works.. I've been busy and haven't been
able to get all the stuff in place to put in a pull request :-/ This still
requires you to link binaries to /usr/bin from wherever you compile your
Freeswitch to..

[Unit]
Description=freeswitch
After=syslog.target network.target local-fs.target

[Service]
; service
Type=forking
RuntimeDirectory=freeswitch
PIDFile=/run/freeswitch/freeswitch.pid
PermissionsStartOnly=true
ExecStart=/usr/bin/freeswitch -ncwait -nonat -run /run/freeswitch
TimeoutSec=45s
Restart=always
; exec
WorkingDirectory=/run/freeswitch
User=freeswitch
Group=daemon
LimitCORE=infinity
LimitNOFILE=100000
LimitNPROC=60000
;LimitSTACK=240
LimitRTPRIO=infinity
LimitRTTIME=7000000
IOSchedulingClass=realtime
IOSchedulingPriority=2
CPUSchedulingPolicy=rr
CPUSchedulingPriority=89
UMask=0007

[Install]
WantedBy=multi-user.target


Cheers,

Joe
Hi Joseph, Any chance you can share your service file, I am having issues
myself trying to get freeswitch running with systemd.
Thank You,
-John
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
Post by Michael Jerris
If you have a working one, please get a pull request to us so we can review the changes.
Thanks
Mike
Hello,
I modified the path variables in the systemd init file.
[Unit]
Description=freeswitch
After=syslog.target network.target local-fs.target
[Service]
; service
Type=forking
PIDFile=/usr/local/freeswitch/run/freeswitch.pid
PermissionsStartOnly=true
ExecStartPre=/bin/mkdir -p /usr/local/freeswitch/run
ExecStartPre=/bin/chown freeswitch:freeswitch /usr/local/freeswitch/run
ExecStart=/usr/bin/freeswitch -ncwait -nonat
TimeoutSec=45s
Restart=always
; exec
WorkingDirectory=/usr/local/freeswitch/run
User=freeswitch
Group=freeswitch
LimitCORE=infinity
LimitNOFILE=100000
LimitNPROC=60000
;LimitSTACK=240
LimitRTPRIO=infinity
LimitRTTIME=7000000
IOSchedulingClass=realtime
IOSchedulingPriority=2
CPUSchedulingPolicy=rr
CPUSchedulingPriority=89
UMask=0007
[Install]
WantedBy=multi-user.target
Post by Joseph Dickson
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
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!
Joseph Dickson
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.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
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.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
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.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
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
c***@ccs.covici.com
2015-05-12 18:58:44 UTC
Permalink
I could never get type=forking to function, I wonder how you got that to
work, I had to say -nf and use type=simple.
Post by Joseph Dickson
John,
This is what I ended up with that works.. I've been busy and haven't been
able to get all the stuff in place to put in a pull request :-/ This still
requires you to link binaries to /usr/bin from wherever you compile your
Freeswitch to..
[Unit]
Description=freeswitch
After=syslog.target network.target local-fs.target
[Service]
; service
Type=forking
RuntimeDirectory=freeswitch
PIDFile=/run/freeswitch/freeswitch.pid
PermissionsStartOnly=true
ExecStart=/usr/bin/freeswitch -ncwait -nonat -run /run/freeswitch
TimeoutSec=45s
Restart=always
; exec
WorkingDirectory=/run/freeswitch
User=freeswitch
Group=daemon
LimitCORE=infinity
LimitNOFILE=100000
LimitNPROC=60000
;LimitSTACK=240
LimitRTPRIO=infinity
LimitRTTIME=7000000
IOSchedulingClass=realtime
IOSchedulingPriority=2
CPUSchedulingPolicy=rr
CPUSchedulingPriority=89
UMask=0007
[Install]
WantedBy=multi-user.target
Cheers,
Joe
Hi Joseph, Any chance you can share your service file, I am having issues
myself trying to get freeswitch running with systemd.
Thank You,
-John
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
Post by Michael Jerris
If you have a working one, please get a pull request to us so we can
review the changes.
Thanks
Mike
Hello,
I modified the path variables in the systemd init file.
[Unit]
Description=freeswitch
After=syslog.target network.target local-fs.target
[Service]
; service
Type=forking
PIDFile=/usr/local/freeswitch/run/freeswitch.pid
PermissionsStartOnly=true
ExecStartPre=/bin/mkdir -p /usr/local/freeswitch/run
ExecStartPre=/bin/chown freeswitch:freeswitch /usr/local/freeswitch/run
ExecStart=/usr/bin/freeswitch -ncwait -nonat
TimeoutSec=45s
Restart=always
; exec
WorkingDirectory=/usr/local/freeswitch/run
User=freeswitch
Group=freeswitch
LimitCORE=infinity
LimitNOFILE=100000
LimitNPROC=60000
;LimitSTACK=240
LimitRTPRIO=infinity
LimitRTTIME=7000000
IOSchedulingClass=realtime
IOSchedulingPriority=2
CPUSchedulingPolicy=rr
CPUSchedulingPriority=89
UMask=0007
[Install]
WantedBy=multi-user.target
Post by Joseph Dickson
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
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!
Joseph Dickson
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.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
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.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
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.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
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.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
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?

John Covici
***@ccs.covici.com

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
***@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-***@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Joseph Dickson
2015-05-12 19:03:48 UTC
Permalink
I think the key is to make sure that the pid file gets created in the right
spot -- note the -run flag being passed to override the run directory to be
/run/freeswitch

Joe
Post by c***@ccs.covici.com
I could never get type=forking to function, I wonder how you got that to
work, I had to say -nf and use type=simple.
c***@ccs.covici.com
2015-05-12 19:46:53 UTC
Permalink
I had mine as /var/run/freeswitch and a Pidfile directive, but it did
not work, but -nf does, so I guess its OK.
Post by Joseph Dickson
I think the key is to make sure that the pid file gets created in the right
spot -- note the -run flag being passed to override the run directory to be
/run/freeswitch
Joe
Post by c***@ccs.covici.com
I could never get type=forking to function, I wonder how you got that to
work, I had to say -nf and use type=simple.
----------------------------------------------------
----------------------------------------------------
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?

John Covici
***@ccs.covici.com

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
***@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-***@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Michael Jerris
2015-05-12 20:02:08 UTC
Permalink
Can someone please open a jira and a pull request to add this to tree, and to include it in jesse packages?
Post by c***@ccs.covici.com
I had mine as /var/run/freeswitch and a Pidfile directive, but it did
not work, but -nf does, so I guess its OK.
Post by Joseph Dickson
I think the key is to make sure that the pid file gets created in the right
spot -- note the -run flag being passed to override the run directory to be
/run/freeswitch
Joe
Post by c***@ccs.covici.com
I could never get type=forking to function, I wonder how you got that to
work, I had to say -nf and use type=simple.
----------------------------------------------------
----------------------------------------------------
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
How do
you spend it?
John Covici
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
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:
***@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-***@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

tilt
2015-05-12 19:28:16 UTC
Permalink
Thanks Joseph, this seems to be working for me!
Post by Vik Killa
[Unit]
Post by Vik Killa
Description=freeswitch
After=syslog.target network.target local-fs.target
[Service]
; service
Type=forking
RuntimeDirectory=freeswitch
PIDFile=/run/freeswitch/freeswitch.pid
PermissionsStartOnly=true
ExecStart=/usr/bin/freeswitch -ncwait -nonat -run /run/freeswitch
TimeoutSec=45s
Restart=always
; exec
WorkingDirectory=/run/freeswitch
User=freeswitch
Group=daemon
LimitCORE=infinity
LimitNOFILE=100000
LimitNPROC=60000
;LimitSTACK=240
LimitRTPRIO=infinity
LimitRTTIME=7000000
IOSchedulingClass=realtime
IOSchedulingPriority=2
CPUSchedulingPolicy=rr
CPUSchedulingPriority=89
UMask=0007
[Install]
WantedBy=multi-user.target
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
***@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-***@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Loading...