I want to turn off my server every night, but I don't get it working for some reason. The script works when I press "Run script in background" (the server shuts down):
#!/bin/bash
/sbin/poweroff
`/etc/cron.d/root` looks fine I guess:
root@Nano:~# cat /etc/cron.d/root
...
# Generated cron schedule for user.scripts
0 21 * * * /usr/local/emhttp/plugins/user.scripts/startCustom.php /boot/config/plugins/user.scripts/scripts/power_down/script > /dev/null 2>&1
Any ideas?