How to Kill X service permanently in ubuntu server

0

When I attempt to stop or kill the X service using the PID command on the Ubuntu server, it temporarily stops, but after a few minutes, it automatically appears again. It doesn't seem to work as expected. please suggest any way to resolve it.

Rj
gefragt vor 3 Monaten139 Aufrufe
2 Antworten
0

Which process is it that you're trying to kill? If it's launched by a service that's under systemd control, then it may be set to automatically restart on failure.

This Red Hat document explains it in more depth, I know you're running Ubuntu but they both use systemd https://www.redhat.com/sysadmin/systemd-automate-recovery

profile picture
EXPERTE
Steve_M
beantwortet vor 3 Monaten
0

X service is associated with graphical desktop environment for GUI. Your Ubuntu probably have GUI installed. If you do not need GUI, you can switch from graphical.target to multi-user. target with the command

sudo systemctl isolate multi-user.target

To set this permanently,

sudo systemctl set-default multi-user.target
AWS
EXPERTE
Mike_L
beantwortet vor 3 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen