Installing Yate from RPMs

From Yate Documentation
(Difference between revisions)
Jump to: navigation, search
(Start Yate on system boot command)
(Updated description for systemd)
 
Line 9: Line 9:
 
Run the following command to install RPM:
 
Run the following command to install RPM:
  
  rpm -Uhv yate-4.3.0-1mdv2009.1.x86_64.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)
Line 16: Line 16:
  
 
To modify the starting parameters you have to edit the starting script file.<br>
 
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.
+
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:
 
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
 
* -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)
 
* -r:            Enable rotation of log file (needs -s and -l)
 
* -l filename:    Log to file
 
* -l filename:    Log to file
 +
* -v:            Verbose debugging (you can use more than once)
 
* -Df:            Timestamp debugging in GMT format YYYYMMDDhhmmss.uuuuuu
 
* -Df:            Timestamp debugging in GMT format YYYYMMDDhhmmss.uuuuuu
  
Line 34: Line 35:
 
  service yate start
 
  service yate start
  
On some distributions that use [http://en.wikipedia.org/wiki/Systemd systemd] the command above may fail. In that case you may need to prepare the init script first:
+
On distributions that use [http://en.wikipedia.org/wiki/Systemd systemd] you should use the following command:
  
  chkconfig --add yate
+
  systemctl start yate.service
  
 
==Start Yate on system boot command==
 
==Start Yate on system boot command==
Line 42: 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'''

Latest revision as of 14: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.

Contents

[edit] Download RPMs

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

[edit] 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)

[edit] 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.

[edit] 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

[edit] 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

Personal tools
Namespaces

Variants
Actions
Preface
Configuration
Administrators
Developers