Ubuntu power off, power on using physical button

i’m powering my radxa zero using a battery and i would like to know how to safe power off the board (and why the green led does not turn off) and also if is there any way to turn on the board using a button (rasp zero w can be turned on using gnd and pin 5)