GUF-Yocto-34.0-r5756-0
VINCELL
User Manual
rbcfg-enable-autojobs.xml
:
Enables all
autojob
functions (default behaviour).
rbcfg-disable-autojobs.xml
:
Disables all
autojob
functions.
These may be installed like all other XML-configuration files via the
xconfig
tool, e.g.:
root@santaro:~# export TFTP=172.20.0.146
root@santaro:~# curl tftp://$TFTP/rbcfg-enable-autojobs.xml > /tmp/cfg.xml
root@santaro:~# xconfig import -y /tmp/cfg.xml
Afterwards you can query and enable/disable each
autojob
individually using
sconfig
.
Enable
autostart
function:
root@santaro:~# sconfig autostart all
Disable
autostart
function:
root@santaro:~# sconfig autostart off
Query current state of
autostart
function:
root@santaro:~# sconfig autostart
off
Notes:
If
sconfig
replies with its usage-information you still have an OS installed, which doesn’t support en-
abling/disabling individual
autojob
functions. Please update your OS in this case.
If querying an
autojob
function returns no reply, at all, your XML-configuration probably doesn’t contain
explicit settings for the
autojob
functions, yet. Please install one of the provided XML-configuration files as
shown above.
The possible values of
all
and
off
have been chosen on purpose to allow future extension to enable/disable
the functions for different storage media individually. When this extension will be implemented and how
exactly the syntax for this will look like is still to be defined.
4.1.10 Cron
The
cron
service allows execute commands automatically to a given time.
The crond service has a startup link that points to the corresponding start script:
/etc/rc5.d/S20crond -> /etc/init.d/crond
The startup script simply starts
/usr/sbin/crond
as a daemon.
The cron task are configured with
crontab
.
crontab -e
An example script is shown in the editor and can be modified.
#------------------------------------------------------------------------------------
# Shell variable for cron
SHELL=/bin/bash
# PATH variable for cron
PATH=/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11
#------------------------------------------------------------------------------------
# Minute
Hour
Day of Month
Month
Day of Week
Command
# (0-59)
(0-23)
(1-31)
(1-12 or Jan-Dec)
(0-6 or Sun-Sat)
#
*/10
*
*
*
*
date > /root/
,!
crontest
#------------------------------------------------------------------------------------
See the official cron documentation for syntax of this file.
20