Commit 26e036b5 authored by Felipe Pina's avatar Felipe Pina
Browse files

Shell script para iniciar o sga daemon

Versão inicial de shell script para iniciar o sga daemon e gravar a saída padrão em um arquivo de log.
Showing with 14 additions and 0 deletions
+14 -0
sgad.sh 0 → 100644
#!/bin/sh
timestamp=$(date +%Y%m%d%H%M%S)
logfile="sgad_${timestamp}.log"
confgfile=${1}
if [ -z ${confgfile} ]; then
echo "Using default file configuration" > ${logfile};
confgfile=sgad.cfg
fi
eval $(luarocks path --bin)
sgad ${confgfile} >> "${logfile}" 2>&1 &
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment