1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/tiddlywiki_ynh.git synced 2024-09-03 20:26:34 +02:00
This commit is contained in:
ericgaspar 2021-03-27 22:00:33 +01:00
parent 34d4be5505
commit 3294b3a799
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 5 additions and 3 deletions

View file

@ -10,6 +10,8 @@ WorkingDirectory=__FINALPATH__
Environment=PATH=__ENV_PATH__
Environment=NODE_ENV=production
ExecStart=__YNH_NODE__ tiddlywiki mynewwiki --listen port=__PORT__ username=__ADMIN__ password=__PASSWORD__
StandardOutput=append:/var/log/__APP__/__APP__.log
StandardError=inherit
Restart=always
[Install]

View file

@ -137,7 +137,7 @@ yunohost service add $app --description="A non-linear personal web notebook" --l
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=2
ynh_systemd_action --service_name=$app --action=restart --log_path=systemd --line_match="Serving on"
ynh_systemd_action --service_name=$app --action=restart --log_path="/var/log/$app/$app.log" --line_match="Serving on"
#=================================================
# SETUP SSOWAT

View file

@ -101,7 +101,7 @@ yunohost service add $app --description="A non-linear personal web notebook" --l
#=================================================
ynh_script_progression --message="Starting a systemd service..."
ynh_systemd_action --service_name=$app --action=restart --log_path=systemd --line_match="Serving on"
ynh_systemd_action --service_name=$app --action=restart --log_path="/var/log/$app/$app.log" --line_match="Serving on"
#=================================================
# GENERIC FINALIZATION

View file

@ -139,7 +139,7 @@ yunohost service add $app --description="A non-linear personal web notebook" --l
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=1
ynh_systemd_action --service_name=$app --action=restart --log_path=systemd --line_match="Serving on"
ynh_systemd_action --service_name=$app --action=restart --log_path="/var/log/$app/$app.log" --line_match="Serving on"
#=================================================
# RELOAD NGINX