Page 1 of 1

graceful shutdown/reboot script?

Posted: Fri May 10, 2019 11:58 am
by canoodle
Hello,

thanks for the great control panel, really love it's simplicity (do not need that softaculous, i use my own script to do wget latest wordpress, unpack, chmod etc.)

usually have:

Code: Select all

/scripts/shutdown.sh
/scripts/reboot.sh
... what is the most graceful way to shutdown/reboot vestacp?

or is a simple

Code: Select all

sync; shutdown -h now;
just fine?

just askin'

Re: graceful shutdown/reboot script?

Posted: Mon May 13, 2019 7:41 am
by canoodle
alright i might as well answer my own question.

found:

Code: Select all

/usr/local/vesta/bin/v-restart-system
which does:

Code: Select all

if [  "$restart" = 'yes' ]; then
    /sbin/reboot
fi
so i would say:

Code: Select all

sync; shutdown -h now;
is pretty fine.