ok
Direktori : /usr/share/cloudlinux/ |
Current File : //usr/share/cloudlinux/lvectl |
#!/bin/bash # # lvectl Startup script for lve default initialization # # Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2021 All Rights Reserved # # Licensed under CLOUD LINUX LICENSE AGREEMENT # http://cloudlinux.com/docs/LICENSE.TXT prog="lvectl" RETVAL=0 start() { # Do not start if there is no config file. [ ! -f /proc/lve/list ] && return 6 /usr/sbin/lvectl --reload-binaries > /dev/null 2>&1 /usr/sbin/lvectl --apply all RETVAL=$? sleep 3 return $RETVAL } stop() { return 0 } reload() { /usr/sbin/lvectl --reload-binaries > /dev/null 2>&1 /usr/sbin/lvectl apply all RETVAL=$? return $RETVAL } # See how we were called. case "$1" in start) start ;; stop) stop ;; reload) reload ;; *) echo $"Usage: $prog {start|stop|reload}" exit 1 esac RETVAL=$? exit $RETVAL