diff --git a/conf/systemd.service b/conf/systemd.service index 2d1f911..8756a77 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -9,7 +9,7 @@ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/__APP__ Environment="UVICORN_PORT=__PORT__" Environment="VENV_DIR=__INSTALL_DIR__/venv/" -Environment="UVICORN_HOST=__127.0.0.1__" +Environment="UVICORN_HOST=127.0.0.1" ExecStart=__INSTALL_DIR__/venv/bin/uvicorn --reload flohmarkt:app StandardOutput=append:/var/log/__APP__/__APP__.log StandardError=inherit diff --git a/scripts/install b/scripts/install index 012550f..b76efed 100755 --- a/scripts/install +++ b/scripts/install @@ -98,6 +98,8 @@ ynh_add_systemd_config # integrate into yunohost ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 yunohost service add $app --description="A self-hosted, single-user, ActivityPub powered microblog." --log="/var/log/$app/$app.log" +# start service +ynh_systemd_action --service_name=$app --action="start" # SETUP FAIL2BAN # no need for couchdb, because it will not listen externally