mirror of
https://github.com/YunoHost-Apps/minetest_ynh.git
synced 2024-09-03 20:36:00 +02:00
add line_match
This commit is contained in:
parent
04d0d8ddb9
commit
fcaab2c4d9
4 changed files with 4 additions and 8 deletions
|
@ -43,8 +43,6 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app
|
|||
#=================================================
|
||||
# BACKUP THE APP MAIN DIR
|
||||
#=================================================
|
||||
# Stop Minetest before backup...
|
||||
ynh_systemd_action --action=stop
|
||||
|
||||
ynh_print_info --message="Backing up the main app directory..."
|
||||
|
||||
|
@ -77,6 +75,6 @@ ynh_backup --src_path="/etc/systemd/system/$app.service"
|
|||
# END OF SCRIPT
|
||||
#=================================================
|
||||
# Restart Minetest
|
||||
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/minetest.log"
|
||||
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/minetest.log" --line_match="listening on"
|
||||
|
||||
ynh_print_info --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)."
|
||||
|
|
|
@ -203,8 +203,6 @@ fi
|
|||
# Set permissions on logs
|
||||
chown -R $app:$app /var/log/$app
|
||||
|
||||
ynh_systemd_action --action=start
|
||||
|
||||
#=================================================
|
||||
# STORE THE CONFIG FILE CHECKSUM
|
||||
#=================================================
|
||||
|
@ -267,7 +265,7 @@ yunohost service add $app --log "/var/log/$app/minetest.log"
|
|||
#=================================================
|
||||
ynh_print_info --message="Reloading minetest..."
|
||||
|
||||
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/minetest.log"
|
||||
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/minetest.log" --line_match="listening on"
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
|
|
|
@ -100,7 +100,7 @@ ynh_restore_file --origin_path="/etc/logrotate.d/$app"
|
|||
#=================================================
|
||||
ynh_print_info --message="Reloading minetest..."
|
||||
|
||||
ynh_systemd_action --service_name=$app --action="restart" --log_path="/var/log/$app/minetest.log"
|
||||
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/minetest.log" --line_match="listening on"
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
|
|
|
@ -181,7 +181,7 @@ chown -R $app: $home_path
|
|||
#=================================================
|
||||
ynh_print_info --message="Restarting Minetest..."
|
||||
|
||||
ynh_systemd_action --service_name=$app --action="restart" --log_path="/var/log/$app/minetest.log"
|
||||
ynh_systemd_action --service_name=$app --action="restart" --log_path="/var/log/$app/minetest.log" --line_match="listening on"
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
|
|
Loading…
Add table
Reference in a new issue