You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<<<<<<< HEAD
|
|
|
|
[Unit]
|
|
|
|
Description=Servico para conversao de arquivos e execucao em segundo plano.
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
|
|
|
Restart=always
|
|
|
|
RestartSec=3
|
|
|
|
ExecStart=/var/lib/asterisk/scripts/cnvrtd/cnvrtd.php
|
|
|
|
|
|
|
|
|
|
|
|
=======
|
|
|
|
#
|
|
|
|
# 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=File Converter - Simple IP
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
|
|
|
|
|
|
|
# verifica se o serviço está rodando
|
|
|
|
ExecStartPre=/bin/bash -c '! /usr/bin/systemctl is-active --quiet cnvrtd.service'
|
|
|
|
|
|
|
|
# Limpa pid em /var/lock/subsys/cnvrtd.pid
|
|
|
|
ExecStartPre=/bin/bash -c "echo > /var/lock/subsys/cnvrtd.pid"
|
|
|
|
|
|
|
|
ExecStart=/var/lib/asterisk/scripts/cnvrtd/cnvrtd.php --log=/var/log/cnvrtd.log
|
|
|
|
PIDFile=/var/lock/subsys/cnvrtd.pid
|
|
|
|
|
|
|
|
Restart=always
|
|
|
|
RestartSec=1
|
|
|
|
|
|
|
|
>>>>>>> aadc23f (serviço cnvrtd para systemd - cnvrtd.service)
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|