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
Lecce Pisa 1-0: Stulic decide la sfida salvezza e regala tre punti a Di
Francesco. Bene Camarda da titolare. Il resoconto del match
-
Lecce Pisa 1-0: una rete di Stulic, subentrato al posto di Camarda, regala
tre punti pesantissimi a Di Francesco. Il resoconto del match Il Lecce di
Eusebi...
5 ore fa












