# # 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] <<<<<<< HEAD Description=Service Supervisor Simples IP After=network.target ======= Description=Supervisor - Simples IP >>>>>>> 0ffdd2d (serviço supervisor para systemd - supervisoe.service) [Service] Type=forking # verifica se o serviço está rodando ExecStartPre=/bin/bash -c '! /usr/bin/systemctl is-active --quiet supervisor.service' # Limpa pid em /var/lock/subsys/superivisor.pid ExecStartPre=/bin/bash -c "echo > /var/lock/subsys/superivisor.pid" ExecStart=/var/lib/asterisk/scripts/supervisor/ssupervisor.php --log=/var/log/superivisor.log PIDFile=/var/lock/subsys/superivisor.pid Restart=always <<<<<<< HEAD RestartSec=3 ExecStart=/var/lib/asterisk/scripts/supervisor/ssupervisor.php ======= RestartSec=1 >>>>>>> 0ffdd2d (serviço supervisor para systemd - supervisoe.service) [Install] WantedBy=multi-user.target