|
Post by pope523 on Nov 22, 2015 20:40:32 GMT
I have a fresh install of Kali on my Pi2 with all packaged up to date. I installed FruityWifi from the Kali repo. I cannot get nginx or php5-fpm to start at boot.
I executed update-rc.d nginx defaults and update-rc.d php5-fpm defaults and got no errors. I tried removing them both with update-rc.d -f nginx remove, etc and readded but they still will not start automatically. I am able to manually start them and access FruityWifi.
Thanks
|
|
|
Post by pope523 on Nov 23, 2015 5:29:52 GMT
root@maus:/etc/init.d# cd /etc/init.d/ root@maus:/etc/init.d# ./nginx Usage: nginx {start|stop|restart|reload|force-reload|status|configtest|rotate|upgrade} root@maus:/etc/init.d# ./nginx start [ ok ] Starting nginx (via systemctl): nginx.service. root@maus:/etc/init.d# ./nginx stop [ ok ] Stopping nginx (via systemctl): nginx.service. root@maus:/etc/init.d# cd /etc/rc2.d/ root@maus:/etc/rc2.d# ls -l total 4 lrwxrwxrwx 1 root root 14 Nov 21 19:35 K01gpsd -> ../init.d/gpsd lrwxrwxrwx 1 root root 17 Nov 21 19:34 K01hostapd -> ../init.d/hostapd lrwxrwxrwx 1 root root 25 Nov 21 19:36 K01isc-dhcp-server -> ../init.d/isc-dhcp-server lrwxrwxrwx 1 root root 20 Nov 21 19:37 K01postgresql -> ../init.d/postgresql lrwxrwxrwx 1 root root 16 Nov 21 19:36 K01squid3 -> ../init.d/squid3 lrwxrwxrwx 1 root root 19 Nov 21 19:38 K01tinyproxy -> ../init.d/tinyproxy lrwxrwxrwx 1 root root 17 Nov 21 19:34 K02dnsmasq -> ../init.d/dnsmasq -rw-r--r-- 1 root root 677 May 28 13:16 README lrwxrwxrwx 1 root root 18 Aug 13 16:01 S01bootlogs -> ../init.d/bootlogs lrwxrwxrwx 1 root root 14 Aug 13 16:01 S01motd -> ../init.d/motd lrwxrwxrwx 1 root root 18 Nov 23 04:58 S01php5-fpm -> ../init.d/php5-fpm lrwxrwxrwx 1 root root 17 Aug 13 16:03 S01rsyslog -> ../init.d/rsyslog lrwxrwxrwx 1 root root 14 Nov 22 04:23 S03cron -> ../init.d/cron lrwxrwxrwx 1 root root 14 Nov 22 04:23 S03dbus -> ../init.d/dbus lrwxrwxrwx 1 root root 15 Nov 23 04:58 S03nginx -> ../init.d/nginx lrwxrwxrwx 1 root root 15 Nov 22 04:23 S03rsync -> ../init.d/rsync lrwxrwxrwx 1 root root 13 Nov 22 04:23 S03ssh -> ../init.d/ssh lrwxrwxrwx 1 root root 18 Nov 22 04:23 S03stunnel4 -> ../init.d/stunnel4 lrwxrwxrwx 1 root root 17 Nov 22 04:23 S04lightdm -> ../init.d/lightdm lrwxrwxrwx 1 root root 25 Nov 22 04:23 S04network-manager -> ../init.d/network-manager lrwxrwxrwx 1 root root 15 Nov 22 04:23 S04saned -> ../init.d/saned lrwxrwxrwx 1 root root 18 Nov 22 04:23 S05rc.local -> ../init.d/rc.local lrwxrwxrwx 1 root root 19 Nov 22 04:23 S05rmnologin -> ../init.d/rmnologin root@maus:/etc/rc2.d# ./S03nginx Usage: nginx {start|stop|restart|reload|force-reload|status|configtest|rotate|upgrade} root@maus:/etc/rc2.d# ./S03nginx start [....] Starting S03nginx (via systemctl): S03nginx.serviceFailed to start S03nginx.service: Unit S03nginx.service failed to load: No such file or directory. failed! root@maus:/etc/rc2.d#
|
|
|
Post by pope523 on Dec 3, 2015 22:31:55 GMT
Got help in the #kali-linux channel on Freenode.
Needed to use 'systemctl enable nginx' instead of update-rc.d
|
|