Installing Yate from RPMs

From Yate Documentation
(Difference between revisions)
Jump to: navigation, search
(Prepare the init script)
Line 11: Line 11:
 
(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.
+
The Yate starting script file, that can be found depending on Linux distribution, for example in /etc/init.d, where all service start scripts are installed (in Mandriva).
  
This operation needs that you run as root:
+
By default Yate is started as a supervised daemon with this parameters:
  
cp packing/rpm/yate.init /etc/init.d/yate
+
* -v            Verbose debugging (you can use more than once)
chown root.root /etc/init.d/yate
+
* -F            Increase the maximum file handle to compiled value
 +
* -r            Enable rotation of log file (needs -s and -l)
 +
* -l filename    Log to file
 +
* -Df            Timestamp debugging in GMT format YYYYMMDDhhmmss.uuuuuu
  
Replace rpm with what matches best your distribution's package manager.
+
You may also alter the [[Starting Yate|command line options]] from service start script. To see the existing options you can run command yate --help.
 
+
You will then need to edit the init file and change the path to the executable from /usr/bin to /usr/local/bin.
+
 
+
You may also alter the [[Starting Yate|command line options]] to get more debugging. Is is recommended to enable timestamping for the log messages.
+
 
+
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.
+
 
+
It is also important to provide '''-r''' so logs can be rotated without stopping Yate.
+
  
 
==Start Yate ==
 
==Start Yate ==

Revision as of 14:12, 8 April 2013

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

Contents

Download RPMs

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

Run the following command

rpm -Uhv yate-4.3.0-1mdv2009.1.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

The Yate starting script file, that can be found depending on Linux distribution, for example in /etc/init.d, where all service start scripts are installed (in Mandriva).

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

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

You may also alter the command line options from service start script. To see the existing options you can run command yate --help.

Start Yate

Here is the command to start Yate:

service yate start

Start Yate on system boot command

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

chkconfig --level 345 yate on


See also

Personal tools
Namespaces

Variants
Actions
Preface
Configuration
Administrators
Developers