liuxunorg commented on a change in pull request #3313: [ZEPPELIN-4004] add a systemd unit file to launch the Zeppelin daemon via systemd commands URL: https://github.com/apache/zeppelin/pull/3313#discussion_r259246967
########## File path: scripts/systemd/zeppelin.systemd ########## @@ -0,0 +1,12 @@ +[Unit] +Description=Apache Zeppelin daemon +After=syslog.target network.target + +[Service] +Type=oneshot +ExecStart=/opt/zeppelin-0.8.1-bin-all/bin/zeppelin-daemon.sh start Review comment: Perhaps you can add a script for `add_daemon.sh` to `zeppelin/bin/`. Use this script to generate the correct path to the `zeppelin.service` file in the `/etc/systemd/system` directory. But you need to pay attention to the following points: 1. You need to determine whether the execution user is `root` in `add_daemon.sh` 2. You need to determine the version of the operating system in `add_daemon.sh`, because the path of the `systemd` folder of different operating systems may be different. 3. You need to determine the version of the operating system in `add_daemon.sh`, because the `systemctl` commands may be different for different operating systems. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services