glassfish.service exists but error says no such file or directory, how to fix this issue?

Joined
Apr 16, 2023
Messages
149
Reaction score
16
Credits
1,460
I use windows 10. Inside that, I have VMWare workstation pro. Inside VMWare, I use centos 7 minimal. I am trying to install glassfish application server. I am getting the below error when I type systemctl enable glassfish or systemctl enable glassfish.service
Code:
[root@localhost/]# systemctl enable glassfish.service
    Failed to execute operation: No such file or directory
The thing is that glassfish.service does exists. It is in /etc/system

How do I resolve this issue?
 


Can you share the output of the following?
Code:
systemctl list-unit-files | grep glassfish
Where exactly did you place glassfish.service, exactly under /etc/systemd or elsewhere under that location?
 

Members online


Latest posts

Top