“Script de inicio de Ubuntu” Código de respuesta

Script de inicio de Ubuntu

add the command to /home/$USER/.bashrc
BlessedDog

Iniciar SCIPT en Startup Ubuntu

Create a systemd unit file with .service extension in /etc/systemd/system, 
for example creating:

sudo nano /etc/systemd/system/my-service.service

, with the following content:


[Unit]
Description=My custom startup script

[Service]
ExecStart=/home/user/startup.sh start

[Install]
WantedBy=multi-user.target


You can now start/stop this service with:

sudo systemctl start my-service / sudo systemctl stop my-service

To enable this service when startup, run:

sudo systemctl enable my-service

To disable this service when startup, run:

sudo systemctl disable my-service
Green Team

Respuestas similares a “Script de inicio de Ubuntu”

Preguntas similares a “Script de inicio de Ubuntu”

Más respuestas relacionadas con “Script de inicio de Ubuntu” en Shell/Bash

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código