removido
(usa Nenhuma)
Enviado em 21/03/2016 - 11:33h
amarildosertorio escreveu:
fvalim escreveu:
Boa Tarde Galera.
Se eu desligo ou reinicio o servidor , o script não roda.
Tenho que sempre dar um :
service firewall.sh restart.
Alguém tem uma solução ?
# systemctl enable firewall.sh
# reboot
Segue erro :
systemctl enable firewall.sh
Synchronizing state for firewall.sh.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d firewall.sh defaults
insserv: Script firewall.sh is broken: incomplete LSB comment.
insserv: missing `Provides:' entry: please add.
insserv: missing `Required-Start:' entry: please add even if empty.
insserv: missing `Required-Stop:' entry: please add even if empty.
insserv: missing `Default-Start:' entry: please add even if empty.
insserv: missing `Default-Stop:' entry: please add even if empty.
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `firewall.sh'
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `firewall.sh'
Executing /usr/sbin/update-rc.d firewall.sh enable
update-rc.d: error: firewall.sh Default-Start contains no runlevels, aborting.