Merge changes from upstream

This commit is contained in:
ZonD Eighty 2013-01-16 14:12:53 +04:00
commit c094d8582d
54 changed files with 4981 additions and 5671 deletions

42
bin/v-start-service Executable file
View file

@ -0,0 +1,42 @@
#!/bin/bash
# info: start service
# options: service
#
# The function starts system service.
#----------------------------------------------------------#
# Variable&Function #
#----------------------------------------------------------#
# Argument defenition
service=$1
# Includes
source $VESTA/func/main.sh
#----------------------------------------------------------#
# Verifications #
#----------------------------------------------------------#
check_args '1' "$#" 'SERVICE'
#----------------------------------------------------------#
# Action #
#----------------------------------------------------------#
if [ -x "/etc/init.d/$service" ]; then
/etc/init.d/$service start >/dev/null 2>&1
if [ $? -ne 0 ]; then
exit $E_RESTART
fi
fi
#----------------------------------------------------------#
# Vesta #
#----------------------------------------------------------#
exit