Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Aviso can be executed as a system service. This helps automating its restart in case of machine reboots. The following steps help to configure Aviso to run as a service that automatically restart:

  1. Identify the location of the Aviso executable:

    Code Block
    languagebash
    themeDJango
    user@local whereis aviso

    Create a system service unit, by creating the following file in /etc/systemd/system/aviso.service:

    Code Block
    languageyml
    [Unit]​
    Description=Aviso​
    
    [Service]​
    User=<username> (if omitted it will run as root)
    Group=<groupname> (optional)
    WorkingDirectory= <home_directory> (optional)
    ExecStart=<aviso_location> listen​/opt/anaconda3/bin/aviso listen
    Restart=always
    
    [Install]​
    WantedBy=multi-user.target​

  2. Enable the aviso service:

    Code Block
    languagebash
    themeDJango
    user@local sudo systemctl enable aviso.service​


  3. Reload systemd:

    Code Block
    languagebash
    themeDJango
    user@local sudo systemctl daemon-reload​


  4. Start the service:

    Code Block
    languagebash
    themeDJango
    user@local sudo systemctl start aviso.service


...