mirror of
https://github.com/YunoHost-Apps/homeassistant_ynh.git
synced 2024-09-03 19:26:16 +02:00
Debug
This commit is contained in:
parent
8881a11de4
commit
1cd9ba7afb
2 changed files with 2 additions and 4 deletions
|
@ -7,8 +7,6 @@ Type=simple
|
||||||
User=__APP__
|
User=__APP__
|
||||||
WorkingDirectory=__PATH__
|
WorkingDirectory=__PATH__
|
||||||
ExecStart=/opt/yunohost/__APP__/bin/hass --config "__PATH__" --log-file "/var/log/__APP__/__APP__.log" --verbose
|
ExecStart=/opt/yunohost/__APP__/bin/hass --config "__PATH__" --log-file "/var/log/__APP__/__APP__.log" --verbose
|
||||||
StandardOutput=append:/var/log/__APP__/__APP__.log
|
|
||||||
StandardError=inherit
|
|
||||||
|
|
||||||
# Sandboxing options to harden security
|
# Sandboxing options to harden security
|
||||||
# Depending on specificities of your service/app, you may need to tweak these
|
# Depending on specificities of your service/app, you may need to tweak these
|
||||||
|
|
|
@ -17,7 +17,7 @@ is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||||
# definie useful vars
|
# definie useful vars
|
||||||
final_path="/opt/yunohost/$app"
|
final_path="/opt/yunohost/$app"
|
||||||
data_path="/home/yunohost.app/$app"
|
data_path="/home/yunohost.app/$app"
|
||||||
log_file="$data_path/.$app/home-assistant.log"
|
log_file="/var/log/$app/$app.log"
|
||||||
path_url="/"
|
path_url="/"
|
||||||
|
|
||||||
# check domain/path availability
|
# check domain/path availability
|
||||||
|
@ -82,7 +82,7 @@ yunohost service add "$app" --log "$log_file" --description "Home Assistant serv
|
||||||
|
|
||||||
# start systemd service
|
# start systemd service
|
||||||
ynh_script_progression --message="Starting the Home Assistant server..."
|
ynh_script_progression --message="Starting the Home Assistant server..."
|
||||||
ynh_systemd_action --service_name="$app" --action=start --line_match="Home Assistant initialized" --log_path="/var/log/$app" --timeout=3600
|
ynh_systemd_action --service_name="$app" --action=start --line_match="Home Assistant initialized" --log_path="$log_file" --timeout=3600
|
||||||
|
|
||||||
# remove --verbose from service
|
# remove --verbose from service
|
||||||
ynh_replace_string --match_string=" --verbose" --replace_string="" --target_file="/etc/systemd/system/$app.service"
|
ynh_replace_string --match_string=" --verbose" --replace_string="" --target_file="/etc/systemd/system/$app.service"
|
||||||
|
|
Loading…
Add table
Reference in a new issue