Solving the bootup issue June 25, 2014 07:02PM |
Admin Registered: 14 years ago Posts: 4,680 |
/etc/systemd/system/piratebox.service, that it looks like that
[Unit] Description=PirateBox Service [Service] Type=idle RemainAfterExit=yes ExecStart=/opt/piratebox/init.d/piratebox_alt start ExecStop=/opt/piratebox/init.d/piratebox_alt stop #Restart=/opt/piratebox/init.d/piratebox_alt restart #PIDFile=/var/run/piratebox.pid [Install] WantedBy=multi-user.target
Re: Solving the bootup issue June 30, 2014 05:39PM |
Re: Solving the bootup issue July 04, 2014 07:11PM |
Registered: 10 years ago Posts: 4 |
* piratebox.service - PirateBox Service Loaded: loaded (/etc/systemd/system/piratebox.service; enabled) Active: failed (Result: exit-code) since Wed 1969-12-31 17:00:10 MST; 44 years 6 months ago Process: 109 ExecStart=/opt/piratebox/init.d/piratebox_alt start (code=exited, status=255) Dec 31 17:00:10 alarmpi piratebox_alt[109]: Starting hostap... Dec 31 17:00:10 alarmpi piratebox_alt[109]: 0 Dec 31 17:00:10 alarmpi piratebox_alt[109]: Setting up wlan Dec 31 17:00:10 alarmpi piratebox_alt[109]: Bringing up wifi interface wlan0 Dec 31 17:00:10 alarmpi piratebox_alt[109]: wlan0: ERROR while getting interface flags: No such device Dec 31 17:00:10 alarmpi systemd[1]: piratebox.service: control process exited, code=exited status=255 Dec 31 17:00:10 alarmpi piratebox_alt[109]: ..failed Dec 31 17:00:10 alarmpi piratebox_alt[109]: failed setting up Interface Dec 31 17:00:10 alarmpi systemd[1]: Failed to start PirateBox Service. Dec 31 17:00:10 alarmpi systemd[1]: Unit piratebox.service entered failed state.
systemctl start pirateboxand
systemctl enable pirateboxworks only until next start.
Re: Solving the bootup issue July 05, 2014 08:06PM |
Admin Registered: 14 years ago Posts: 4,680 |
logger_syslog=-1 logger_syslog_level=2
systemctl status piratebox
Re: Solving the bootup issue July 06, 2014 12:09PM |
Re: Solving the bootup issue July 06, 2014 12:26PM |
Admin Registered: 14 years ago Posts: 4,680 |
Re: Solving the bootup issue July 06, 2014 01:04PM |
Re: Solving the bootup issue July 06, 2014 05:55PM |
Registered: 10 years ago Posts: 4 |
[root@alarmpi ~]# systemctl status piratebox * piratebox.service - PirateBox Service Loaded: loaded (/etc/systemd/system/piratebox.service; enabled) Active: failed (Result: exit-code) since Wed 1969-12-31 17:00:10 MST; 44 years 6 months ago Process: 107 ExecStart=/opt/piratebox/init.d/piratebox_alt start (code=exited, status=255) Dec 31 17:00:10 alarmpi piratebox_alt[107]: Starting hostap... Dec 31 17:00:10 alarmpi piratebox_alt[107]: 0 Dec 31 17:00:10 alarmpi piratebox_alt[107]: Setting up wlan Dec 31 17:00:10 alarmpi piratebox_alt[107]: Bringing up wifi interface wlan0 Dec 31 17:00:10 alarmpi piratebox_alt[107]: wlan0: ERROR while getting interface flags: No such device Dec 31 17:00:10 alarmpi piratebox_alt[107]: ..failed Dec 31 17:00:10 alarmpi systemd[1]: piratebox.service: control process exited, code=exited status=255 Dec 31 17:00:10 alarmpi piratebox_alt[107]: failed setting up Interface Dec 31 17:00:10 alarmpi systemd[1]: Failed to start PirateBox Service. Dec 31 17:00:10 alarmpi systemd[1]: Unit piratebox.service entered failed state.
Re: Solving the bootup issue July 09, 2014 07:43PM |
Admin Registered: 14 years ago Posts: 4,680 |
sed -i 's|PROBE_INTERFACE="no"|PROBE_INTERFACE="yes"|g' /opt/piratebox/conf/piratebox.confwithout problem)
/opt/piratebox/init.d/piratebox_altfind the following line:
fi if [ "$PROBE_INTERFACE" = yes ] ; then echo " Probe wlan"That should be around line 87 -
if [ "$PROBE_INTERFACE" = "yes" ] ; then
/opt/piratebox/bin/piratebox_setup_wlan.sh.
ifconfig $INTERFACE down elif [ $ = "probe" ] ; then # simply check if the interface is available probe fi
elif [ "$2" = "probe" ] ; then
systemctl piratebox restart systemctl piratebox status journalctl -xn
Re: Solving the bootup issue July 09, 2014 11:29PM |
Re: Solving the bootup issue July 10, 2014 03:32AM |
Admin Registered: 14 years ago Posts: 4,680 |
systemctl status --all piratebox?
Re: Solving the bootup issue July 10, 2014 09:15AM |
Re: Solving the bootup issue July 21, 2014 07:11PM |
Admin Registered: 14 years ago Posts: 4,680 |
Re: Solving the bootup issue July 21, 2014 09:21PM |
Re: Solving the bootup issue July 22, 2014 05:17PM |
Admin Registered: 14 years ago Posts: 4,680 |
Re: Solving the bootup issue July 22, 2014 09:37PM |
Re: Solving the bootup issue July 24, 2014 07:54PM |
Admin Registered: 14 years ago Posts: 4,680 |
Re: Solving the bootup issue August 01, 2014 08:11PM |
Registered: 10 years ago Posts: 37 |
hostapd -dd /opt/piratebox/conf/hostapd.conf? It produces some output for me at least...
start-stop-daemon -m -S -b -p $PIDFILE_HOSTAPN -x /usr/sbin/hostapd -- $CONF_APNin the piratebox_alt script to something like
/usr/sbin/hostapd -dd $CONF_APN >> /opt/piratebox/hostapd.log
Re: Solving the bootup issue August 21, 2014 07:51PM |
Admin Registered: 14 years ago Posts: 4,680 |
[Unit] Description=PirateBox Service [Service] Type=idle RemainAfterExit=yes ExecStart=/opt/piratebox/init.d/piratebox_alt start ExecStop=/opt/piratebox/init.d/piratebox_alt stop #Restart=/opt/piratebox/init.d/piratebox_alt restart #PIDFile=/var/run/piratebox.pid [Install] WantedBy=multi-user.target
Re: Solving the bootup issue August 25, 2014 11:00PM |
Re: Solving the bootup issue August 26, 2014 04:41AM |
Admin Registered: 14 years ago Posts: 4,680 |
Re: Solving the bootup issue December 14, 2015 03:51PM |