Adding ynh_systemd_action

This commit is contained in:
yalh76
2019-05-02 20:44:22 +02:00
parent 46d318c00b
commit ff1d963eac
5 changed files with 65 additions and 0 deletions

View File

@@ -121,6 +121,13 @@ systemctl enable $app.service
yunohost service add $app --log "/var/log/$app/$app.log"
#=================================================
# START SYSTEMD SERVICE
#=================================================
ynh_script_progression --message="Starting a systemd service..." --time --weight=1
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
#=================================================
# RESTORE THE CRON FILE
#=================================================