From 37c40d155931bff9a51d10340f0d821c00d2402b Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 30 Oct 2020 01:50:37 +0100 Subject: [PATCH] fix start --- scripts/install | 3 +++ scripts/upgrade | 3 +++ 2 files changed, 6 insertions(+) diff --git a/scripts/install b/scripts/install index 4cac41e..aa5f274 100644 --- a/scripts/install +++ b/scripts/install @@ -203,6 +203,9 @@ yunohost service add $app --description "$app daemon for Bitwarden" --log "/var/ #================================================= ynh_print_info --message="Starting a systemd service..." +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="unable to load Private Key" --length=100 +ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" --line_match="Stopped Bitwarden Server" + # Start a systemd service ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Rocket has launched from" --length=100 diff --git a/scripts/upgrade b/scripts/upgrade index 64fd78b..5775d83 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -232,6 +232,9 @@ fi #================================================= ynh_print_info --message="Starting a systemd service..." +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="unable to load Private Key" --length=100 +ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" --line_match="Stopped Bitwarden Server" + ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Rocket has launched from" --length=100 #=================================================