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
preguntada hace 3 meses138 visualizaciones
2 Respuestas
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
EXPERTO
Steve_M
respondido hace 3 meses
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
EXPERTO
Mike_L
respondido hace 3 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas