File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,13 @@ After=multi-user.target
2121
2222[Service]
2323Type=simple
24- ExecStartPre=/bin/rm -f {{ deploy_dir_app }}/RUNNING_PID
24+ Restart=on-failure
25+ {% if deploy_log_stdout == True or deploy_log_stderr == True %}
26+ ExecStart=/bin/sh -c "{{ deploy_dir_app }}/{{ deploy_service_start_command }} {% if deploy_log_stdout == True %} 1> {{ deploy_log_stdout_path }}{% endif %} {% if deploy_log_stderr == True %} 2>{{ deploy_log_stderr_path }}{% endif %} "
27+ {% else %}
2528ExecStart={{ deploy_dir_app }}/{{ deploy_service_start_command }}
29+ {% endif %}
30+ ExecStopPost=/bin/rm -f {{ deploy_dir_app }}/RUNNING_PID
2631WorkingDirectory={{ deploy_dir_app }}
2732User={{ deploy_app_user }}
2833Group={{ deploy_app_group }}
You can’t perform that action at this time.
0 commit comments