projects
/
hvlinux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add function to get package version using underscore separator
[hvlinux.git]
/
stage3
/
bootscripts
/
fcron
diff --git
a/stage3/bootscripts/fcron
b/stage3/bootscripts/fcron
index
f6b1c46
..
a34a0f7
100755
(executable)
--- a/
stage3/bootscripts/fcron
+++ b/
stage3/bootscripts/fcron
@@
-7,30
+7,40
@@
source /etc/rc.d/init.d/functions
log_script_name "$0 $*"
log_script_name "$0 $*"
+DAEMON=/usr/sbin/fcron
+DAEMON_DESC="fcron daemon"
+DAEMON_OPTS="-b -c /etc/fcron/fcron.conf"
+
+fcron_start()
+{
+ /etc/fcron/configure
+ loadproc ${DAEMON} ${DAEMON_OPTS}
+}
+
# See how we were called.
case "$1" in
start)
# See how we were called.
case "$1" in
start)
- cmd_run_log_box_warn "
FCRON start" loadproc fcron -b -c /etc/fcron/fcron.conf
+ cmd_run_log_box_warn "
${DAEMON_DESC} start" fcron_start
;;
;;
-
+
stop)
stop)
- cmd_run_log_box_warn "
FCRON stop" killproc fcron
+ cmd_run_log_box_warn "
${DAEMON_DESC} stop" killproc ${DAEMON}
;;
;;
-
+
reload)
reload)
- cmd_run_log_box_warn "
FCRON reload" reloadproc fcron
+ cmd_run_log_box_warn "
${DAEMON_DESC} reload" reloadproc ${DAEMON}
;;
;;
-
+
restart)
$0 stop
sleep 1
$0 start
;;
restart)
$0 stop
sleep 1
$0 start
;;
-
+
status)
status)
- statusproc
fcron
+ statusproc
${DAEMON}
;;
;;
-
+
*)
echo "Usage: $0 {start|stop|reload|restart|status}"
exit ${EXIT_CODE_FAILURE}
*)
echo "Usage: $0 {start|stop|reload|restart|status}"
exit ${EXIT_CODE_FAILURE}