To run xtreamui at boot with Systemd init service,
you can add this code in /etc/init.d/xtreamcodes
after you change xtreamcodes init script, you have to run
after this xtreamui will start at boot, without need to be added in rc.local file
tested on Ubuntu 18.04
you can add this code in /etc/init.d/xtreamcodes
PHP:
#
#!/bin/bash
#
### BEGIN INIT INFO
# Provides: xtreamcodes
# Required-Start: $mysql $network
# Should-Start: $network $time
# Should-Stop: $network $time
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the xtreamcodes server daemon
# Description: Controls the main xtreamcodes server daemon
/home/xtreamcodes/iptv_xtream_codes/start_services.sh
after you change xtreamcodes init script, you have to run
systemctl enable xtreamcodes
after this xtreamui will start at boot, without need to be added in rc.local file
tested on Ubuntu 18.04