Horje
start scipt at startup ubuntu Code Example
ubuntu startup script
add the command to /home/$USER/.bashrc
start scipt at 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
Source: transang.me




Shell

Related
copy file to remote server Code Example copy file to remote server Code Example
iina github Code Example iina github Code Example
python exe to py Code Example python exe to py Code Example
-z option in shell script Code Example -z option in shell script Code Example
git by nouman Code Example git by nouman Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11