mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02:00
Fix
This commit is contained in:
parent
3beeac20e1
commit
ef2ad159e8
4 changed files with 9 additions and 9 deletions
|
@ -8,7 +8,7 @@ User=__APP__
|
||||||
Group=__APP__
|
Group=__APP__
|
||||||
ExecStart=php__PHPVERSION__ __FINALPATH__/artisan horizon
|
ExecStart=php__PHPVERSION__ __FINALPATH__/artisan horizon
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
#stdout_logfile=/var/log/__APP__/__APP__-horizon.log
|
#stdout_logfile=/var/log/__APP__/__APP__.log
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
|
@ -138,7 +138,7 @@ ynh_exec_warn_less ynh_install_composer --phpversion="$phpversion" --workdir="$f
|
||||||
ynh_script_progression --message="Creating log file..."
|
ynh_script_progression --message="Creating log file..."
|
||||||
|
|
||||||
mkdir -p "/var/log/$app/"
|
mkdir -p "/var/log/$app/"
|
||||||
touch "/var/log/$app/${app}-horizon.log"
|
touch "/var/log/$app/$app.log"
|
||||||
chown -R $app: "/var/log/$app/"
|
chown -R $app: "/var/log/$app/"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -197,14 +197,14 @@ ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app"
|
||||||
ynh_script_progression --message="Configuring log rotation..."
|
ynh_script_progression --message="Configuring log rotation..."
|
||||||
|
|
||||||
# Use logrotate to manage application logfile(s)
|
# Use logrotate to manage application logfile(s)
|
||||||
ynh_use_logrotate --logfile="/var/log/$app/${app}-horizon.log"
|
ynh_use_logrotate --logfile="/var/log/$app/$app.log"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INTEGRATE SERVICE IN YUNOHOST
|
# INTEGRATE SERVICE IN YUNOHOST
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Integrating service in YunoHost..."
|
ynh_script_progression --message="Integrating service in YunoHost..."
|
||||||
|
|
||||||
yunohost service add $app --description="Ethical photo sharing platform" --log="/var/log/$app/${app}-horizon.log"
|
yunohost service add $app --description="Ethical photo sharing platform" --log="/var/log/$app/$app.log"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SUPERVISOR SERVICE
|
# START SUPERVISOR SERVICE
|
||||||
|
@ -212,7 +212,7 @@ yunohost service add $app --description="Ethical photo sharing platform" --log="
|
||||||
ynh_script_progression --message="Starting a supervisor service..."
|
ynh_script_progression --message="Starting a supervisor service..."
|
||||||
|
|
||||||
# Start a supervisor service
|
# Start a supervisor service
|
||||||
ynh_supervisor_action --service_name="$app" --action="reload" --log_path="systemd" #--line_match="success: ${app}-horizon"
|
ynh_systemd_action --service_name="$app" --action="start" --log_path="systemd" #--line_match="success: ${app}-horizon"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SSOWAT
|
# SETUP SSOWAT
|
||||||
|
|
|
@ -132,14 +132,14 @@ systemctl enable $app.service --quiet
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Integrating service in YunoHost..."
|
ynh_script_progression --message="Integrating service in YunoHost..."
|
||||||
|
|
||||||
yunohost service add "supervisor" --description="Supervisor daemon for $app" --log="/var/log/$app/${app}-horizon.log"
|
yunohost service add $app --description="Supervisor daemon for $app" --log="/var/log/$app/$app.log"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SUPERVISOR SERVICE
|
# START SUPERVISOR SERVICE
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Starting a supervisor service..."
|
ynh_script_progression --message="Starting a supervisor service..."
|
||||||
|
|
||||||
ynh_supervisor_action --service_name="${app}-horizon" --action="reload" --log_path="systemd" --line_match="success: ${app}-horizon"
|
ynh_systemd_action --service_name="$app" --action="start" --log_path="systemd" #--line_match="success: ${app}-horizon"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE LOGROTATE CONFIGURATION
|
# RESTORE THE LOGROTATE CONFIGURATION
|
||||||
|
|
|
@ -238,7 +238,7 @@ popd
|
||||||
ynh_script_progression --message="Creating log file..."
|
ynh_script_progression --message="Creating log file..."
|
||||||
|
|
||||||
mkdir -p "/var/log/$app/"
|
mkdir -p "/var/log/$app/"
|
||||||
touch "/var/log/$app/${app}-horizon.log"
|
touch "/var/log/$app/$app.log"
|
||||||
chown -R $app: "/var/log/$app/"
|
chown -R $app: "/var/log/$app/"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -271,7 +271,7 @@ ynh_use_logrotate --non-append
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Integrating service in YunoHost..."
|
ynh_script_progression --message="Integrating service in YunoHost..."
|
||||||
|
|
||||||
yunohost service add "supervisor" --description="Supervisor daemon for $app" --log="/var/log/$app/${app}-horizon.log"
|
yunohost service add $app --description="Supervisor daemon for $app" --log="/var/log/$app/$app.log"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SUPERVISOR SERVICE
|
# START SUPERVISOR SERVICE
|
||||||
|
|
Loading…
Add table
Reference in a new issue