mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 18:49:17 -07:00
check_result function
This commit is contained in:
parent
062b7e81f0
commit
91a804c1c8
66 changed files with 204 additions and 404 deletions
|
@ -52,11 +52,9 @@ sync_cron_jobs
|
|||
# Decreasing cron value
|
||||
decrease_user_value "$user" '$U_CRON_JOBS'
|
||||
|
||||
# Restart crond
|
||||
# Restarting crond
|
||||
$BIN/v-restart-cron
|
||||
if [ $? -ne 0 ]; then
|
||||
exit $E_RESTART
|
||||
fi
|
||||
check_result $? "Restart restart failed" >/dev/null
|
||||
|
||||
# Logging
|
||||
log_history "deleted cron job $job"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue