-
Hi Community ,
[Unit]
Description=Apache Hop Server
After=network.target
[Service]
Type=simple
User=hopuser
Group=hopuser
WorkingDirectory=/ruta/a/apache-hop
ExecStart=/ruta/a/apache-hop/hop-server.sh
ExecStop=/bin/kill -TERM $MAINPID
Restart=on-failure
RestartSec=5
# Limita el tamaño máximo del log
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=hop
[Install]
WantedBy=multi-user.target version 2 [Unit]
Description=Apache Hop Server
After=network.target
[Service]
Type=simple
User=hopuser
Group=hopuser
WorkingDirectory=/ruta/a/apache-hop
Environment="HOP_SERVER_ADMIN_PASSWORD=tu_password"
ExecStart=/ruta/a/apache-hop/hop-server.sh
ExecStop=/usr/bin/curl -X GET http://localhost:8080/hop-server/stop?password=$HOP_SERVER_ADMIN_PASSWORD
Restart=on-failure
RestartSec=5
# Limita el tamaño máximo del log
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=hop
[Install]
WantedBy=multi-user.target
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
from https://hop.apache.org/manual/latest/hop-server/index.html example: hop-server.bat 127.0.0.1 8080 --kill --userName cluster --password cluster |
Beta Was this translation helpful? Give feedback.
-
roger roger , [Unit]
Description=Apache Hop Server
After=network.target
[Service]
Type=simple
User=hopuser
Group=hopuser
WorkingDirectory=/ruta/a/apache-hop
ExecStart=/ruta/a/apache-hop/hop-server.sh 0.0.0.0 8080
ExecStop=/ruta/a/apache-hop/hop-server.sh 0.0.0.0 8080 8182 --kill --userName cluster --password cluster
Restart=on-failure
RestartSec=5
#Max log
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=hop
[Install]
WantedBy=multi-user.target In that case, is it a good idea to add the ShutdownPort (8182), or is it not needed as a best practice? |
Beta Was this translation helpful? Give feedback.
-
Regarding this, is there any way to send both server logs and execution logs to a specific file, like /var/logs/apache_hop.log? I saw this link, but it’s not 100% clear to me |
Beta Was this translation helpful? Give feedback.
there isn't anything out of the box that would let send server and execution logs to the same log file, but I guess you could make it work with a combination of server configuration and pipeline log and workflow log.