Louie De Janeiru

Ubuntu 18.04 application auto start 본문

Linux

Ubuntu 18.04 application auto start

Louiey 2020. 6. 25. 09:56

1. create shell

    nano /home/louiey/Work/start.sh

 

2. mode change

    chmod +x /home/louiey/Work/start.sh

 

3. create service file

    sudo nano /lib/systemd/system/start.service

 

[Unit]
Description=Start program

[Service]
ExecStart=/home/louiey/Work/start.sh
Restart=on-failure
RestartPreventExitStatus=255

[Install]
WantedBy=multi-user.target
Alias=start.service

    

4. mode change

    sudo chmod 755 /lib/systemd/system/start.service

 

5. start

systemctl daemon-reload
systemctl enable soomvi.service
systemctl start soomvi.service

systemctl status start.service	// confirm

 

'Linux' 카테고리의 다른 글

ssh install and configure  (0) 2020.11.17
Application auto start on gnome  (0) 2020.07.22
Ubuntu WiFi Hotspot auto start  (0) 2020.06.25
/etc/passwd issue fix  (0) 2020.02.12
ubuntu 19 Koreac input method configuration  (0) 2019.12.11