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

Create Symlink for the Klipper Log file. #8

Open
ruffle-b opened this issue Nov 12, 2021 · 1 comment
Open

Create Symlink for the Klipper Log file. #8

ruffle-b opened this issue Nov 12, 2021 · 1 comment
Milestone

Comments

@ruffle-b
Copy link

Change /etc/init.d/ratos (or wherever else seems sensible) to create a symlink from /tmp/klippy.log to /home/pi/klipper_logs/klippy.log so people can find the log file.

start)
echo "$(date +"%Y-%m-%d %T"): Updating RatOS" >> "$logfile"
if [ -e /tmp/printer ]; then
curl http://localhost:7125/printer/restart -X POST
fi
ln -fs /home/pi/klipper_logs/klippy.log /tmp/klippy.log
;;

@LucidityCrash
Copy link

Personally I go the other way round ... the logs go to /tmp/... and the link points to that but either way works :)

@miklschmidt miklschmidt added this to the 1.1.0 milestone Nov 20, 2021
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

3 participants