Change the log managment (also for fail2ban support)

This commit is contained in:
Josué Tille
2019-08-05 16:51:46 +02:00
parent c734163ed7
commit 9e2c149643
5 changed files with 28 additions and 5 deletions

View File

@ -51,7 +51,7 @@ config_nginx
config_gitea
# RELOAD services
ynh_systemd_action -l "Gitea v$upstream_version built with GNU Make .*, go.* : bindata, sqlite, sqlite_unlock_notify" -p "systemd" -a restart -t 5
ynh_systemd_action -l "Serving \[::\]:$port with pid" -p "/var/log/$app/gitea.log" -a restart
sleep 1
# Store the checksum with the 'INTERNAL_TOKEN' value.

View File

@ -117,7 +117,7 @@ ynh_use_logrotate "/var/log/$app"
ynh_app_setting_set $app upstream_version $upstream_version
# Reload services
ynh_systemd_action -l "Gitea v$upstream_version built with GNU Make .*, go.* : bindata, sqlite, sqlite_unlock_notify" -p "systemd" -t 5
ynh_systemd_action -l "Serving \[::\]:$port with pid" -p "/var/log/$app/gitea.log"
sleep 1
# Store the checksum with the 'INTERNAL_TOKEN' value.

View File

@ -70,5 +70,5 @@ yunohost service add "$app" --log /var/log/"$app"/"$app".log
# Reload services
systemctl reload nginx.service
ynh_systemd_action -l "Gitea v$upstream_version built with GNU Make .*, go.* : bindata, sqlite, sqlite_unlock_notify" -p "systemd" -t 5
ynh_systemd_action -l "Serving \[::\]:$port with pid" -p "/var/log/$app/gitea.log"
sleep 1

View File

@ -178,7 +178,7 @@ ynh_app_setting_set $app upstream_version $(ynh_app_upstream_version)
set_access_settings
# Reload services
ynh_systemd_action -l "Gitea v$upstream_version built with GNU Make .*, go.* : bindata, sqlite, sqlite_unlock_notify" -p "systemd" -t 5
ynh_systemd_action -l "Serving \[::\]:$port with pid" -p "/var/log/$app/gitea.log"
sleep 1
# Store the checksum with the 'INTERNAL_TOKEN' value.