I'm trying to use the scheduled jobs to run a script to fix an ftp issue.. so
I tried to set it up like this:
but when I try to execute it it fails with this error:
Code
OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export SHELL=/bin/sh; sudo --shell --non-interactive --user=root -- sh /etc/init.d/proftpd restart 2>&1' with exit code '1': Restarting proftpd (via systemctl): proftpd.service
#0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(588): Engined\Rpc\Cron->Engined\Rpc\{closure}('/tmp/bgstatus0x...', '/tmp/bgoutputkX...')
#1 /usr/share/openmediavault/engined/rpc/cron.inc(181): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
any ideas?
The issues I'm actually having is described here, but nobody seems to know how to fix it except for manually restarting the service:
https://forum.openmediavault.o…?postID=219161#post219161
edit: nevermind, it somehow, just works after rebooting, guess I can just ignore that error.