In the past I had issues with the FTP service, obviously a problem nobody could figure out. I did find a workaround, though - but now that doesn't work anymore.
I'm trying to restart a service - namely proftpd - via scheduled jobs once a day. The way I have tried to do so is via a direct command or by executing a shell script. When running the job manually, both ways work perfectly fine, but when triggered at the specified time, both will fail, the error message reads:
Here's the command:
And here's the call for the script:
The script itself is very simple, here are it's entire contents:
I have searched around for "Inappropriate ioctl for device" with several hits, but I just can't figure out, how to solve the issue here. As said, when I execute either option manually on the scheduled jobs page, they work absolutely fine, ftp will immediately restart.