GitHub user ravamo edited a discussion: Apache Hop Server systemd
Hi Community , I have two questions and I wonder if anyone can help. - I have Apache Hop running as a systemd service, but I want to avoid having to use ExecStop=/bin/kill -TERM $MAINPID when stopping it. I’ve seen something like this on the website: ExecStop=/usr/bin/curl -X GET http://localhost:8080/hop-server/stop?password=$HOP_SERVER_ADMIN_PASSWORD. What’s the best way to stop the server properly? version 1 ``` shell [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 ```shell [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 ``` - Also, has anyone created an Ansible playbook for the installation? If not, I can create one, but I just want to avoid duplicating efforts. best GitHub link: https://github.com/apache/hop/discussions/4540 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
