From 32b55c607aa3845dd71f2ab1b692096643334b95 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 2 Feb 2019 23:17:52 +0100 Subject: [PATCH] removing log informations --- conf/systemd.service | 2 +- scripts/install | 7 ------- scripts/restore | 9 +-------- 3 files changed, 2 insertions(+), 16 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index c634d59..ccfd652 100755 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -8,7 +8,7 @@ User=__APP__ Group=__APP__ WorkingDirectory=__FINALPATH__/__APP__ Environment="HOME=__FINALPATH__" -ExecStart=/bin/sh -c '/usr/bin/mix phx.server >> /var/log/__APP__/__APP__.log 2>&1' +ExecStart=/usr/bin/mix phx.server ExecReload=/bin/kill $MAINPID KillMode=process Restart=on-failure diff --git a/scripts/install b/scripts/install index 93c930d..ca9878a 100755 --- a/scripts/install +++ b/scripts/install @@ -216,13 +216,6 @@ ynh_system_user_create "$app" "$final_path" #================================================= # SPECIFIC SETUP -#================================================= -# CREATE LOG FOLDER -#================================================= - -mkdir -p "/var/log/$app" -chown -R "$app":"$app" "/var/log/$app" - #================================================= # MODIFY A CONFIG FILE #================================================= diff --git a/scripts/restore b/scripts/restore index f4e45dc..c4a54d5 100755 --- a/scripts/restore +++ b/scripts/restore @@ -153,15 +153,8 @@ ynh_restore_file "/etc/logrotate.d/$app" systemctl reload nginx -#================================================= -# CREATE LOG FOLDER -#================================================= - -mkdir -p "/var/log/$app" -chown -R "$app":"$app" "/var/log/$app" - #================================================= # START SERVICE #================================================= -ynh_systemd_action --action=start --service_name=$app +ynh_systemd_action --action=start --service_name=$app --log_path=systemd --line_match="Running Pleroma.Web.Endpoint"