I run restart_services -l --no-color as a cron job at night using vixie-cron. Problem is, that somehow in the vixie-cron environment the command stty icanon echo echok in the function clean_exit() results in the output stty: standard input: Inappropriate ioctl for device I am not 100% sure, what this command does (I guess it cleans the terminal in case something goes wrong with coloring). I am using the newest version of restart_services in portage (0.11.0) and '/bin/bash' as the vixie-cron shell.
Does this make sense? It's a check, whether the shell is interactive. function clean_exit() { case $- in *i*) stty icanon echo echok ;; esac }
Sorry for the delay and many thanks for your report. I will have a look soon.
Fixed upstream. Please reopen if new version 0.12.0 does not solve it for you. And thanks again for reporting!
I recently updated to the latest version 0.13.0-r1 (which of course overwrites my changes) and the errors are back again. Your solution somehow does not work for execution through vixie-cron.
Should be fixed in 0.13.1, at least with my cronie I could reproduce it and now its fixed. Thanks for using restart_services ;)