Auto processes start from task scheduler.
kblair1 opened this issue · 3 comments
kblair1 commented
Need switch setting or config setting to start processes running after server reboot and starting app with task scheduler.
interlark commented
Why not to use one of these?
- crontab
- rc.local
- init.d
- systemd
interlark commented
- 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
- Set permissions and enable the service
sudo chmod 644 /etc/systemd/system/ustvgo.service
sudo systemctl enable ustvgo.service
- Reboot
Don't forget to replace USERNAME
with your actual username.