Via SSH, I can indeed use docker attach and from within I can issue a stop for MC server. Works fine.
However, the Synology task scheduler via DSM doesn’t seem to be able to similarly attach and then issue the stop command. I get this back via email (for when a scheduled task fails):
Task Scheduler has completed a scheduled task.
Task: MC Graceful Restart
Start time: Tue, 29 Aug 2023 17:19:41 -0500
Stop time: Tue, 29 Aug 2023 17:19:42 -0500
Current status: 127 (Interrupted)
Standard output/error:
the input device is not a TTY
/bin/bash: line 1: stop: command not found
This looked so promising.
Via SSH, I can indeed use
docker attach
and from within I can issue astop
for MC server. Works fine.However, the Synology task scheduler via DSM doesn’t seem to be able to similarly attach and then issue the stop command. I get this back via email (for when a scheduled task fails):