Smile CDR v2024.05.PRE
On this page:

3.2.1Unix Service Installation

 

Smile CDR ships with a systemd service script that can be used to start Smile CDR as a Linux service.

This service script should require very little configuration in order to work correctly. It provides the following functionality:

  • It can be configured to start automatically upon system startup

  • It will automatically restart the service if it dies

  • It runs the service as a user called smile (although this can be modified)

In order to install the systemd script, copy the service file to the sytemd service directory:

sudo cp bin/smilecdr.service /etc/systemd/system/smilecdr.service
sudo chown root /etc/systemd/system/smilecdr.service

You may want to edit this file to change any relevant defaults:

  • The script assumes that Smile CDR will run as the smile user

  • The script assumes that Smile CDR is installed in /opt/smilecdr

3.2.2Testing the Service

 

Start the service:

sudo systemctl start smilecdr

Stop the service:

sudo systemctl stop smilecdr

3.2.3Starting Automatically on Boot

 

To configure the system to start Smile CDR automatically when the system boots up.

sudo systemctl enable smilecdr