...
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:
Identify the location of the Aviso executable:
Code Block language bash theme DJango user@local whereis aviso
Create a system service unit, by creating the following file in /etc/systemd/system/aviso.service:
Code Block language yml [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
Enable the aviso service:
Code Block language bash theme DJango user@local sudo systemctl enable aviso.service
Reload systemd:
Code Block language bash theme DJango user@local sudo systemctl daemon-reload
Start the service:
Code Block language bash theme DJango user@local sudo systemctl start aviso.service
...