Tweaks to service start

This commit is contained in:
orhtej2
2026-05-11 14:16:05 +02:00
parent 03e90c9381
commit c84cece0bd
5 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ ynh_backup "/etc/systemd/system/$app.service"
# BACKUP VARIOUS FILES # BACKUP VARIOUS FILES
#================================================= #=================================================
ynh_backup "/var/log/$app/" ynh_backup "/var/log/technitium/"
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT
+2 -2
View File
@@ -11,7 +11,7 @@ source /usr/share/yunohost/helpers
#================================================= #=================================================
ynh_script_progression "Stopping $app's systemd service..." ynh_script_progression "Stopping $app's systemd service..."
ynh_systemctl --service="$app" --action="stop" ynh_systemctl --service="$app" --action="stop" --wait_until="was stopped successfully"
#================================================= #=================================================
# MODIFY URL IN NGINX CONF # MODIFY URL IN NGINX CONF
@@ -25,7 +25,7 @@ ynh_config_change_url_nginx
#================================================= #=================================================
ynh_script_progression "Starting $app's systemd service..." ynh_script_progression "Starting $app's systemd service..."
ynh_systemctl --service="$app" --action="start" ynh_systemctl --service="$app" --action="start" --wait_until="in web browser to access web console."
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT
+2 -2
View File
@@ -25,7 +25,7 @@ ynh_config_add_nginx
# Create a dedicated systemd config # Create a dedicated systemd config
ynh_config_add_systemd ynh_config_add_systemd
yunohost service add "$app" --description="Technitium DNS Server" --log="/var/log/$app/$app.log" --needs_exposed_ports="53" yunohost service add "$app" --description="Technitium DNS Server" --log="/var/log/technitium/$app.log" --needs_exposed_ports="53"
# Use logrotate to manage application logfile(s) # Use logrotate to manage application logfile(s)
ynh_config_add_logrotate /var/log/technitium/dns ynh_config_add_logrotate /var/log/technitium/dns
@@ -36,7 +36,7 @@ ynh_config_add_logrotate /var/log/technitium/dns
ynh_script_progression "Starting $app's systemd service..." ynh_script_progression "Starting $app's systemd service..."
# Start a systemd service # Start a systemd service
ynh_systemctl --service="$app" --action="start" ynh_systemctl --service="$app" --action="start" --wait_until="in web browser to access web console."
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT
+2 -2
View File
@@ -29,7 +29,7 @@ ynh_restore "/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_restore "/etc/systemd/system/$app.service" ynh_restore "/etc/systemd/system/$app.service"
systemctl enable "$app.service" --quiet systemctl enable "$app.service" --quiet
yunohost service add "$app" --description="Technitium DNS Server" --log="/var/log/$app/$app.log" --needs_exposed_ports=53 yunohost service add "$app" --description="Technitium DNS Server" --log="/var/log/technitium/$app.log" --needs_exposed_ports=53
ynh_restore "/etc/logrotate.d/$app" ynh_restore "/etc/logrotate.d/$app"
mkdir -p /var/log/technitium/dns mkdir -p /var/log/technitium/dns
@@ -40,7 +40,7 @@ chown -R $app:$app /var/log/technitium
#================================================= #=================================================
ynh_script_progression "Starting $app's systemd service..." ynh_script_progression "Starting $app's systemd service..."
ynh_systemctl --service="$app" --action="start" ynh_systemctl --service="$app" --action="start" --wait_until="in web browser to access web console."
#================================================= #=================================================
# RELOAD NGINX # RELOAD NGINX
+3 -3
View File
@@ -11,7 +11,7 @@ source /usr/share/yunohost/helpers
#================================================= #=================================================
ynh_script_progression "Stopping $app's systemd service..." ynh_script_progression "Stopping $app's systemd service..."
ynh_systemctl --service=$app --action="stop" ynh_systemctl --service=$app --action="stop" --wait_until="was stopped successfully"
#================================================= #=================================================
# ENSURE DOWNWARD COMPATIBILITY # ENSURE DOWNWARD COMPATIBILITY
@@ -43,7 +43,7 @@ ynh_config_add_nginx
# Create a dedicated systemd config # Create a dedicated systemd config
ynh_config_add_systemd ynh_config_add_systemd
yunohost service add "$app" --description="Technitium DNS Server" --log="/var/log/$app/$app.log" --needs_exposed_ports=53 yunohost service add "$app" --description="Technitium DNS Server" --log="/var/log/technitium/$app.log" --needs_exposed_ports=53
# Use logrotate to manage app-specific logfile(s) # Use logrotate to manage app-specific logfile(s)
ynh_config_add_logrotate /var/log/technitium/dns ynh_config_add_logrotate /var/log/technitium/dns
@@ -53,7 +53,7 @@ ynh_config_add_logrotate /var/log/technitium/dns
#================================================= #=================================================
ynh_script_progression "Starting $app's systemd service..." ynh_script_progression "Starting $app's systemd service..."
ynh_systemctl --service="$app" --action="start" ynh_systemctl --service="$app" --action="start" --wait_until="in web browser to access web console."
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT