Buat file
# nano /etc/systemd/system/rc-local.serviceIsi dengan :
[Unit]
Description=/etc/rc.local
ConditionPathExists=/etc/rc.local
[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99
[Install]
WantedBy=multi-user.target
Buat file rc.local
#nano /etc/rc.localisi dengan :
#!/bin/sh -esimpan dan atur file permission
#
# rc.local
#letakkan kode startup disini, misalnya
/etc/init.d/php-fpm-73 restart
exit 0
#chmod +x /etc/rc.localenable kan rc lokal pada saat booting
#systemctl enable rc-localJalankan services
#systemctl start rc-local.service
Tidak ada komentar:
Posting Komentar