<<<<<<< HEAD <<<<<<< HEAD [Unit] Description=Servico para retorno de chamadas abandonadas automaticamente. After=network.target [Service] Type=forking Restart=always RestartSec=3 ExecStart=/var/lib/asterisk/scripts/abandonadas/retornoAbandonada.php ======= ======= >>>>>>> ad564e39815b362816e2fbcbc8681338ece321df # # ExecStartPre # If more than one command is specified, the # commands are invoked sequentially in the # order they appear in the unit file. If one # of the commands fails (and is not prefixed # with "-"), other lines are not executed, # and the unit is considered failed. # [Unit] Description=Abandoned Return - Simple IP [Service] Type=forking # verifica se o serviço está rodando ExecStartPre=/bin/bash -c '! /usr/bin/systemctl is-active --quiet rtabd.service' # Limpa pid em /var/lock/subsys/rtabd.pid ExecStartPre=/bin/bash -c "echo > /var/lock/subsys/rtabd.pid" ExecStart=/var/lib/asterisk/scripts/abandonadas/retornoAbandonada.php --log=/var/log/retornoAbandonada.log PIDFile=/var/lock/subsys/rtabd.pid Restart=always RestartSec=1 <<<<<<< HEAD >>>>>>> 43c6181 (serviço rtabd para systemd - rtadb.service) ======= >>>>>>> ad564e39815b362816e2fbcbc8681338ece321df [Install] WantedBy=multi-user.target