zeppelin/scripts/systemd
Soonoh 0f7c27d46c
[ZEPPELIN-6182] fix fail on running script to enable system service
### What is this PR for?

fixes error on running a script to enable Zeppelin as system service

error message:

```
$ sudo ./bin/zeppelin-systemd-service.sh enable
Failed to enable unit: Unit file zeppelin.service does not exist.
To start Zeppelin using systemd, simply type:
# systemctl start zeppelin

To check the service health:
# systemctl status zeppelin
```

### What type of PR is it?
Bug Fix

### Todos

### What is the Jira issue?

* https://issues.apache.org/jira/browse/ZEPPELIN-6182

### How should this be tested?

* `sudo ./bin/zeppelin-system-service.sh enable` should work without error message.
* `systemctl list-units --all "zeppelin.*" | grep zeppelin` should list zeppelin.service.
   output: `  zeppelin.service loaded inactive dead Apache Zeppelin daemon`
* `sudo ./bin/zeppelin-system-service.sh disable` should work without error message. 
   `systemctl list-units --all "zeppelin.*" | grep zeppelin` should not list zeppelin.service.
   There should be no /etc/systemd/system/zeppelin.service file.
 
### Screenshots (if appropriate)

### Questions:
* Does the license files need to update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No



Closes #4921 from sh1nj1/fix/system-serivce-sh.

Signed-off-by: Philipp Dallig <philipp.dallig@gmail.com>
2025-04-30 08:56:40 +02:00
..
zeppelin.service [ZEPPELIN-6182] fix fail on running script to enable system service 2025-04-30 08:56:40 +02:00