Quote
did you put
Quote
#!/bin/sh
as first line?yes
Quote
Are you running as root... shutdown often need to be root (via sudo, but as server you cannot ask a password...).
I start claymore with an @reboot cron in a screen, so technically it should be running as root (the screen is in the "root"-screenlist).
Quote
To trace maybe you can add "-x'" to trace the script.
Quote
#!/bin/sh -x
add echo command before and after, in case problem is with shutdown itself...Good idea, did not get to that when I fiddled around with it yesterday evening, gonna check that at home.
Quote
I run something like
/sbin/shutdown -r 1
(restart in 1 minute)
/sbin/shutdown -r 1
(restart in 1 minute)
You put this command in a "restart.sh" file inside the claymore folder or into bin? I was lazy and just put a "restart" into my script, I'll check your way aswell (sounds wise giving the cards some time to cool before rebooting).
Quote
It works well, and I even send email including a journalctl extract with ssmtp during the last minute.
Holy damn, that sounds epic