Skip to content

Commit

Permalink
captiveportal: peek at PID, fix reboot startup
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Aug 15, 2017
1 parent f473470 commit b3cfe6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/etc/rc.d/captiveportal
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ captiveportal_cleanup_zones()

captiveportal_prestart()
{
# initialize captiveportal work directory
mkdir -p $CPWORKDIR
# initialize captiveportal work directory
mkdir -p $CPWORKDIR
}

captiveportal_start()
{
# if the API dispatcher is already running, we will assume all parts are running
if [ ! -f /var/run/lighttpd-api-dispatcher.pid ]; then
if ! pgrep -qF /var/run/lighttpd-api-dispatcher.pid 2> /dev/null; then
echo "Starting API dispatcher"
/usr/local/sbin/lighttpd -f /var/etc/lighttpd-api-dispatcher.conf

Expand Down

3 comments on commit b3cfe6e

@fichtner
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AdSchellevis asking for review, see link in the commit as well. good candidate for 17.7.1, just to be sure

@AdSchellevis
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fichtner checked it on my end, should work perfectly. 17.7.1 is ok

@fichtner
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AdSchellevis merged, thanks!

Please sign in to comment.