How FreeSwitch starts on Debian 8
I followed the instructions of https://freeswitch.org/confluence/display/FREESWITCH/Debian+8+Jessie Which is pretty simple, indeed (exept by -y on apt-get install): apt-get update && apt-get install -y curl curl https://files.freeswitch.org/repo/deb/debian/freeswitch_archive_g0.pub | apt-key add - echo "deb http://files.freeswitch.org/repo/deb/freeswitch-1.6/ jessie main" > /etc/apt/sources.list.d/freeswitch.list apt-get update && apt-get install freeswitch-meta-all After installation, Freeswitch was up and running, but I don't see any /etc/init.d script to start it. When I killed the process, it automatically restarted! How does it happen? Thank you Valter
Init.d scripts are from old sysvinit. Debian 8 uses SystemD which is a completely different system. Things like service freeswitch start/stop etc are probably what you are looking for. From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Valter Nogueira Sent: Friday, May 27, 2016 11:13 AM To: freeswitch-users@lists.freeswitch.org Subject: [Freeswitch-users] How FreeSwitch starts on Debian 8 I followed the instructions of https://freeswitch.org/confluence/display/FREESWITCH/Debian+8+Jessie Which is pretty simple, indeed (exept by -y on apt-get install): apt-get update && apt-get install -y curl curl https://files.freeswitch.org <http://freeswitch.org> /repo/deb/debian/freeswitch_archive_g0.pub | apt-key add - echo "deb http://files.freeswitch.org/repo/deb/freeswitch-1.6/ jessie main" > /etc/apt/sources.list.d/freeswitch.list apt-get update && apt-get install freeswitch-meta-all After installation, Freeswitch was up and running, but I don't see any /etc/init.d script to start it. When I killed the process, it automatically restarted! How does it happen? Thank you Valter
After installation, Freeswitch was up and running, but I don't see any /etc/init.d script to start it. That's because it now uses systemd to start up the service, not sysvinit. To start it up you can either go systemctl start freeswitch or service freeswitch start
To enable/disable it, you'd go: systemctl enable freeswitch or systemctl disable freeswitch
When I killed the process, it automatically restarted!
systemd now automatically recovers crashed services so there isn't a need to install monit like most of us did back in the 1.2 era.
How does it happen?
Thank you
Valter
Ok. I am not aware of systemd. Currenty, we use Ubuntu 14.04 on our server - which I believe uses upstart. At ClueCon Weekly video https://www.youtube.com/watch?v=TyUhpLC8OIM (10:58), Ken Rice still uses systemv init scripts. I will study a little bit about systemd. Thank you, 2016-05-27 13:18 GMT-03:00 Jeff Leung <jleung@v10networks.ca>:
After installation, Freeswitch was up and running, but I don't see any /etc/init.d script to start it. That's because it now uses systemd to start up the service, not sysvinit. To start it up you can either go systemctl start freeswitch or service freeswitch start
To enable/disable it, you'd go: systemctl enable freeswitch or systemctl disable freeswitch
When I killed the process, it automatically restarted!
systemd now automatically recovers crashed services so there isn't a need to install monit like most of us did back in the 1.2 era.
How does it happen?
Thank you
Valter
_________________________________________________________________________ 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
Upstart is completely different also… it was one of the init system that was competing against system to replace sysvinit. I’m not sure 100% on how things work on U14.04 at this time. As far as my comments on the sysv init that was nearly a year ago and things have changed since then From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Valter Nogueira Sent: Friday, May 27, 2016 1:46 PM To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Subject: Re: [Freeswitch-users] How FreeSwitch starts on Debian 8 Ok. I am not aware of systemd. Currenty, we use Ubuntu 14.04 on our server - which I believe uses upstart. At ClueCon Weekly video https://www.youtube.com/watch?v=TyUhpLC8OIM (10:58), Ken Rice still uses systemv init scripts. I will study a little bit about systemd. Thank you, <http://www.fastway.com.br/assinaturas/jpg/Valter.jpg> 2016-05-27 13:18 GMT-03:00 Jeff Leung <jleung@v10networks.ca <mailto:jleung@v10networks.ca> >:
After installation, Freeswitch was up and running, but I don't see any /etc/init.d script to start it. That's because it now uses systemd to start up the service, not sysvinit. To start it up you can either go systemctl start freeswitch or service freeswitch start
To enable/disable it, you'd go: systemctl enable freeswitch or systemctl disable freeswitch
When I killed the process, it automatically restarted!
systemd now automatically recovers crashed services so there isn't a need to install monit like most of us did back in the 1.2 era.
How does it happen?
Thank you
Valter
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto: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 <mailto: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
Yes, I know that video was somewhat dated by now. I just was socked in not finding how thing were working. Upstart accepted old init.d scripts and I am using them ever since. I really appreciated the installation tutorial. Thank you, Valter 2016-05-27 18:33 GMT-03:00 Ken Rice <krice@freeswitch.org>:
Upstart is completely different also… it was one of the init system that was competing against system to replace sysvinit.
I’m not sure 100% on how things work on U14.04 at this time.
As far as my comments on the sysv init that was nearly a year ago and things have changed since then
*From:* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] *On Behalf Of *Valter Nogueira *Sent:* Friday, May 27, 2016 1:46 PM *To:* FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> *Subject:* Re: [Freeswitch-users] How FreeSwitch starts on Debian 8
Ok. I am not aware of systemd. Currenty, we use Ubuntu 14.04 on our server - which I believe uses upstart.
At ClueCon Weekly video https://www.youtube.com/watch?v=TyUhpLC8OIM (10:58), Ken Rice still uses systemv init scripts.
I will study a little bit about systemd.
Thank you,
2016-05-27 13:18 GMT-03:00 Jeff Leung <jleung@v10networks.ca>:
After installation, Freeswitch was up and running, but I don't see any /etc/init.d script to start it. That's because it now uses systemd to start up the service, not sysvinit. To start it up you can either go systemctl start freeswitch or service freeswitch start
To enable/disable it, you'd go: systemctl enable freeswitch or systemctl disable freeswitch
When I killed the process, it automatically restarted!
systemd now automatically recovers crashed services so there isn't a need to install monit like most of us did back in the 1.2 era.
How does it happen?
Thank you
Valter
_________________________________________________________________________ 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
participants (3)
-
Jeff Leung
-
Ken Rice
-
Valter Nogueira