Installing Yate from RPMs: Difference between revisions

From Yate Documentation
Jump to navigation Jump to search
No edit summary
Updated description for systemd
 
(11 intermediate revisions by 3 users not shown)
Line 5: Line 5:
[[Download|Download the Yate RPM]] for your CPU type, into your favourite folder (we use /usr/src).
[[Download|Download the Yate RPM]] for your CPU type, into your favourite folder (we use /usr/src).


==Run the following command==
==Install RPM==


  rpm -Uhv yate-4.3.0-1mdv2009.1.x86_64.rpm
Run the following command to install RPM:
 
  rpm -Uhv yate-5.3.0-1.mga4.x86_64.rpm


(this file name may change so just type '''rpm -Uhv yat''' and then press tab and let the shell complete the name for you)
(this file name may change so just type '''rpm -Uhv yat''' and then press tab and let the shell complete the name for you)


==Prepare the init script==
==Change starting parameters==
 
You need to copy and rename the proper yate.init from a subdirectory of packing/ to /etc/init.d where all service start scripts are installed. Note that the script and additional tools depend on the Linux distribution used so take the correct one.
 
This operation needs that you run as root:
 
cp packing/rpm/yate.init /etc/init.d/yate
chown root.root /etc/init.d/yate
 
Replace rpm with what matches best your distribution's package manager.


You will then need to edit the init file and change the path to the executable from /usr/bin to /usr/local/bin.  
To modify the starting parameters you have to edit the starting script file.<br>
This depends on linux distribution, but it usually can be found in /etc/init.d or /usr/lib/systemd/system.


You may also alter the [[Starting Yate|command line options]] to get more debugging. Is is recommended to enable timestamping for the log messages.
By default Yate is started as a supervised daemon with this parameters:


The most important options are '''-d''' and '''-s''' to run as a supervised daemon. This allows Yate to restart automatically if it crashes or locks up.
* -F:            Increase the maximum file handle to compiled value
* -s:            Supervised, restart if crashes or locks up
* -r:            Enable rotation of log file (needs -s and -l)
* -l filename:    Log to file
* -v:            Verbose debugging (you can use more than once)
* -Df:            Timestamp debugging in GMT format YYYYMMDDhhmmss.uuuuuu


It is also important to provide '''-r''' so logs can be rotated without stopping Yate.
To see other options for starting Yate run command ''yate --help''.


==Start Yate ==
==Start Yate ==
Line 35: Line 34:


  service yate start
  service yate start
On distributions that use [http://en.wikipedia.org/wiki/Systemd systemd] you should use the following command:
systemctl start yate.service


==Start Yate on system boot command==
==Start Yate on system boot command==
Line 40: Line 43:
If you want Yate to start every time on boot, type this:
If you want Yate to start every time on boot, type this:


  chkconfig --level 345 yate on
  chkconfig yate on


or, for systemd based distributions:
systemctl enable yate.service
See the manual pages of ''service'' or ''systemctl'' for more commands.


'''See also'''
'''See also'''


* [[Installation]]
* [[Installation]]
[[Category:Install]]

Latest revision as of 11:01, 28 April 2014

If you want to get Yate up and running on your RedHat-based system, here is hopefully the quickest way to get going.

Download RPMs

Download the Yate RPM for your CPU type, into your favourite folder (we use /usr/src).

Install RPM

Run the following command to install RPM:

rpm -Uhv yate-5.3.0-1.mga4.x86_64.rpm

(this file name may change so just type rpm -Uhv yat and then press tab and let the shell complete the name for you)

Change starting parameters

To modify the starting parameters you have to edit the starting script file.
This depends on linux distribution, but it usually can be found in /etc/init.d or /usr/lib/systemd/system.

By default Yate is started as a supervised daemon with this parameters:

  • -F: Increase the maximum file handle to compiled value
  • -s: Supervised, restart if crashes or locks up
  • -r: Enable rotation of log file (needs -s and -l)
  • -l filename: Log to file
  • -v: Verbose debugging (you can use more than once)
  • -Df: Timestamp debugging in GMT format YYYYMMDDhhmmss.uuuuuu

To see other options for starting Yate run command yate --help.

Start Yate

Here is the command to start Yate:

service yate start

On distributions that use systemd you should use the following command:

systemctl start yate.service

Start Yate on system boot command

If you want Yate to start every time on boot, type this:

chkconfig yate on

or, for systemd based distributions:

systemctl enable yate.service

See the manual pages of service or systemctl for more commands.

See also