Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autostart not working on linux(debianRPi) #246

Closed
gimick opened this issue Jul 18, 2013 · 3 comments
Closed

autostart not working on linux(debianRPi) #246

gimick opened this issue Jul 18, 2013 · 3 comments
Assignees
Milestone

Comments

@gimick
Copy link
Contributor

gimick commented Jul 18, 2013

After ./install.sh and reboot the kalite background daemons do not start

manually starting the service with "sudo service kalite start" throws these messages (although the server is not started):

cronstart.sh: line 4: /home/pi/ka-lite/../python.sh: No such file or directory
Starting the cron server in the background.

cronstart.sh: line 16: cronserver.py: command not found
serverstart.sh: line 4: /home/pi/ka-lite/../python.sh: No such file or directory
serverstart.sh: line 7: -c: command not found
Running the web server on port .
serverstart.sh: line 28: manage.py: command not found
The server should now be accessible locally at: http://127.0.0.1:/
To access it from another connected computer, try the following address(es):
http://192.168.1.24:/
http://1.1.1.1:/

@ghost ghost assigned gimick Jul 18, 2013
@gimick
Copy link
Contributor Author

gimick commented Jul 18, 2013

branch develop

@bcipolli
Copy link
Contributor

I believe this is due to a change that I made, "source"-ing the cronstart.sh and serverstart.sh instead of calling them. Though it somehow works on a mac, linux seems to be doing something more reasonable (and failing).

Our current scripts assume that you're running them from the current directory, rather than getting the SCRIPT_DIR from their location (and not where you're running from).

Bottom line: try this out!

replace

SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"

with

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

@gimick could you make this change in the kalite/cronstart.sh and kalite/serverstart.sh files, and retry?

@gimick
Copy link
Contributor Author

gimick commented Jul 18, 2013

yeah cheers @bcipolli that fixes it - I will push something. There is a path related issue in runatboot.sh which I'll also fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants