Make PID and save logs

This commit is contained in:
nemunaire 2023-03-15 20:38:52 +01:00
parent c30d65b16e
commit 4ed142d8d8
3 changed files with 3 additions and 3 deletions

View File

@ -3,5 +3,5 @@
description="Maatma interface, API and more"
command="/usr/sbin/checker"
command_args="-dsn '{{ mysql_maatma.username }}:{{ mysql_maatma.password }}@tcp({{ mysql_endpoint.host }}:{{ mysql_endpoint.port}})/{{ mysql_maatma.database }}'"
start_stop_daemon_args="--background --quiet"
start_stop_daemon_args="--make-pidfile --background --quiet --stdout /var/log/checker.log --stderr /var/log/checker.log"
pidfile="/var/run/$SVCNAME.pid"

View File

@ -2,5 +2,5 @@
description="Maatma interface, API and more"
command="/usr/sbin/clean-wg.sh"
start_stop_daemon_args="--background --quiet"
start_stop_daemon_args="--make-pidfile --background --quiet"
pidfile="/var/run/$SVCNAME.pid"

View File

@ -3,5 +3,5 @@
description="Maatma interface, API and more"
command="/usr/sbin/token-validator"
command_args="-baseurl /maatma/ -dsn '{{ mysql_maatma.username }}:{{ mysql_maatma.password }}@tcp({{ mysql_endpoint.host }}:{{ mysql_endpoint.port}})/{{ mysql_maatma.database }}' -oidc-clientid {{ oidc.clientid }} -oidc-secret {{ oidc.client_secret }}"
start_stop_daemon_args="--background --quiet"
start_stop_daemon_args="--make-pidfile --background --quiet --stdout /var/log/token-validator.log --stderr /var/log/token-validator.log"
pidfile="/var/run/$SVCNAME.pid"