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
Estrazioni del Lotto e numeri vincenti 10eLotto del 7 settembre
-
Ecco le estrazioni del Lotto di oggi 7 settembre: BARI 85 27 36 22 87
CAGLIARI 32 62 36 71 72 FIRENZE 09 31 29 42 55 GENOVA 13 59 87 77 34 MILANO
26 75 62 ...
6 ore fa
ok!
RispondiElimina