The script file is in /etc/init.d/myscript
*** begin myscript file ***
#!/bin/bash
# /etc/init.d/myscript
#
### BEGIN INIT INFO
# Provides: myscript
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Should-Start: $network $time
# Should-Stop: $network $time
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start myscript
# Description: startup myscript
#
### END INIT INFO
#
/path/to/myscript
*** end myscript file ***
As root user we can use chkconfig to enable or disable the script at startup:
chkconfig --list myscript
chkconfig --add myscript
Fulmine sulla torre di una pizzeria a Palermo: 4 persone restano ferite
-
/sites/default/files/styles/image_480x301/public/media/screenshot_2024-12-21_alle_08.19.18.png?itok=PQhNuWZ9Quattro
persone sono rimaste ferite a Palermo, d...
4 ore fa