mirror of
https://github.com/YunoHost-Apps/grafana_ynh.git
synced 2024-09-03 20:36:29 +02:00
commit
1b50029e51
4 changed files with 5 additions and 0 deletions
|
@ -126,6 +126,7 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Starting a systemd service..." --weight=2
|
ynh_script_progression --message="Starting a systemd service..." --weight=2
|
||||||
|
|
||||||
|
systemctl daemon-reload
|
||||||
ynh_systemd_action --service_name=grafana-server --action="start" --log_path="/var/log/grafana/grafana.log" --line_match="HTTP Server Listen" --timeout=600
|
ynh_systemd_action --service_name=grafana-server --action="start" --log_path="/var/log/grafana/grafana.log" --line_match="HTTP Server Listen" --timeout=600
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -173,6 +173,7 @@ sed -i "/^\[database\]$/,/^\[/ {
|
||||||
ynh_store_file_checksum --file="$grafana_conf"
|
ynh_store_file_checksum --file="$grafana_conf"
|
||||||
|
|
||||||
# Start Grafana and wait for it to be fully started
|
# Start Grafana and wait for it to be fully started
|
||||||
|
systemctl daemon-reload
|
||||||
ynh_systemd_action --service_name=grafana-server --action="restart" --log_path="/var/log/grafana/grafana.log" --line_match="HTTP Server Listen" --timeout=600
|
ynh_systemd_action --service_name=grafana-server --action="restart" --log_path="/var/log/grafana/grafana.log" --line_match="HTTP Server Listen" --timeout=600
|
||||||
|
|
||||||
# Change admin name to the specified one
|
# Change admin name to the specified one
|
||||||
|
@ -215,6 +216,7 @@ yunohost service add grafana-server --description="open source analytics and mon
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Starting a systemd service..." --weight=2
|
ynh_script_progression --message="Starting a systemd service..." --weight=2
|
||||||
|
|
||||||
|
systemctl daemon-reload
|
||||||
ynh_systemd_action --service_name=grafana-server --action="restart" --log_path="/var/log/grafana/grafana.log" --line_match="HTTP Server Listen" --timeout=600
|
ynh_systemd_action --service_name=grafana-server --action="restart" --log_path="/var/log/grafana/grafana.log" --line_match="HTTP Server Listen" --timeout=600
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -110,6 +110,7 @@ ynh_script_progression --message="Starting a systemd service..." --weight=1
|
||||||
systemctl enable influxdb.service --quiet
|
systemctl enable influxdb.service --quiet
|
||||||
systemctl enable grafana-server.service --quiet
|
systemctl enable grafana-server.service --quiet
|
||||||
|
|
||||||
|
systemctl daemon-reload
|
||||||
ynh_systemd_action --service_name=influxdb --action="start"
|
ynh_systemd_action --service_name=influxdb --action="start"
|
||||||
ynh_systemd_action --service_name=grafana-server --action="start" --log_path="/var/log/grafana/grafana.log" --line_match="HTTP Server Listen" --timeout=600
|
ynh_systemd_action --service_name=grafana-server --action="start" --log_path="/var/log/grafana/grafana.log" --line_match="HTTP Server Listen" --timeout=600
|
||||||
|
|
||||||
|
|
|
@ -170,6 +170,7 @@ yunohost service add grafana-server --description="open source analytics and mon
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Restarting a systemd service..." --weight=2
|
ynh_script_progression --message="Restarting a systemd service..." --weight=2
|
||||||
|
|
||||||
|
systemctl daemon-reload
|
||||||
ynh_systemd_action --service_name=grafana-server --action="restart" --log_path="/var/log/grafana/grafana.log" --line_match="HTTP Server Listen" --timeout=600
|
ynh_systemd_action --service_name=grafana-server --action="restart" --log_path="/var/log/grafana/grafana.log" --line_match="HTTP Server Listen" --timeout=600
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue