автозапуск autorun1
Добавлено: 06 янв 2025, 12:04
/etc/systemd/system/autorun1.service
/root/autorun.sh
sudo systemctl daemon-reload
sudo systemctl enable autorun1
Код: Выделить всё
[Unit]
Description=Autorun
[Service]
ExecStart=/root/autorun.sh
#Restart=always
[Install]
WantedBy=multi-user.target
Код: Выделить всё
#!/bin/bash
iptables-restore < /etc/iptables
exit 0
sudo systemctl enable autorun1