forked from hestiacp/hestiacp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathv_restart_cron
More file actions
executable file
·35 lines (26 loc) · 990 Bytes
/
Copy pathv_restart_cron
File metadata and controls
executable file
·35 lines (26 loc) · 990 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
# info: restart cron service
# options: none
#
# The function tells crond service to reread its configuration files.
#----------------------------------------------------------#
# Variable&Function #
#----------------------------------------------------------#
# Importing variables
source $VESTA/conf/vars.conf
source $V_CONF/vesta.conf
#----------------------------------------------------------#
# Action #
#----------------------------------------------------------#
# Parsing config / or just source config
if [ "$CRON_SYSTEM" = 'crond' ]; then
/etc/init.d/crond 'reload' >/dev/null 2>&1
if [ $? -ne 0 ]; then
echo "$E_PARSING $V_EVENT"
exit $E_PARSING
fi
fi
#----------------------------------------------------------#
# Vesta #
#----------------------------------------------------------#
exit