Run after-reboot automatically during machine restart

Is there any commcare-cloud cmd to run after-reboot cmd during machine reboot?

Hi

There is an after-reboot command that will run a number of tasks including:

  • decrypt and mount encrypted drive
  • start relevant services

http://dimagi.github.io/commcare-cloud/commcare-cloud/commands/#after-reboot

If you are asking if it's possible to automatically run after-reboot during the normal boot process, the answer is no. The main reason for this is that decrypting the encrypted drive need the encryption key. Having the drive decrypt automatically would defeat the purpose of the encryption.

If you removed the ecryption there there would be little need for the after-reboot command and you could just have any services start when the machine boots.

Ok, thank you for clarification