Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

graceful shutdown/reboot script? Topic is solved

General questions about VestaCP
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
canoodle
Posts: 48
Joined: Thu Nov 27, 2014 9:34 am

graceful shutdown/reboot script?
  • Quote

Post by canoodle » Fri May 10, 2019 11:58 am

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'
Top

canoodle
Posts: 48
Joined: Thu Nov 27, 2014 9:34 am

Re: graceful shutdown/reboot script?
  • Quote

Post by canoodle » Mon May 13, 2019 7:41 am

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.
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password