interlark / ustvgo-iptv

USTVGO Free IPTV

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Auto processes start from task scheduler.

kblair1 opened this issue · comments

Need switch setting or config setting to start processes running after server reboot and starting app with task scheduler.

Why not to use one of these?

  1. crontab
  2. rc.local
  3. init.d
  4. systemd
  1. Create systemd service file
sudo nano /etc/systemd/system/ustvgo.service
[Unit]
Description=USTVGO Free IPTV.
After=network.target

[Service]
User=USERNAME
Type=notify
Restart=always
ExecStart=/home/USERNAME/.local/bin/ustvgo-iptv

[Install]
WantedBy=multi-user.target
  1. Set permissions and enable the service
sudo chmod 644 /etc/systemd/system/ustvgo.service
sudo systemctl enable ustvgo.service
  1. Reboot

Don't forget to replace USERNAME with your actual username.

Added "Autostart" section to the readme. The issue is closed as I suppose it's solved.