Difference between pages "Form:Person" and "Installing a Cron Daemon"

(Difference between pages)
 
(fill out page)
 
Line 1: Line 1:
<noinclude>
+
== Introduction ==
This is the 'Person' form.
+
Cron daemons allow you to configure certain tasks to be run at specific times. Installing a cron daemon is a good idea because some packages may assume that you have a cron daemon installed and create jobs to update their databases with a cron daemon. There are several different loggers available to Funtoo users:
To add a page with this form, enter the page name below;
+
* '''Fcron'''
if a page with that name already exists, you will be sent to a form to edit that page.
+
* '''Cronie'''
 +
* '''Vixie-Cron'''
  
{{#forminput:Person}}
+
== Installation ==
 +
To install the cron daemon, run the following command:  
 +
<console>
 +
# ##i## emerge --ask fcron
  
</noinclude><includeonly>
+
These are the packages that would be merged, in order:
  
== Your Funtoo Information ==
+
Calculating dependencies... done!
__NOTITLE__
+
[ebuild  N    ] sys-process/cronbase-0.3.2-r1
'''This form allows you to enter your personal information, so that you have an official presence in the Funtoo Universe.'''
+
[ebuild  N    ] sys-process/fcron-3.1.2-r2  USE="mta pam readline system-crontab -debug (-selinux)" LINGUAS="-fr"
  
{{{for template|Person}}}
+
##b## Would you like to merge these packages? [Yes/No]##i## yes
=== Your Name, Email, etc. ===
+
</console>
  
'''Please enter your full name:'''
+
Now enable the cron init script so that is starts when your system boots, and enable the cron daemon:
  
{{{field|Full name|required}}}
+
<console>
 +
# ##i##rc-update add fcron default
 +
* service fcron added to runlevel default
 +
# ##i##rc
 +
* Caching service dependencies ...              [ ok ]
 +
* Starting fcron ...                            [ ok ]
 +
</console>
  
Email: {{{field|Email|required}}}
+
=== System Cron Jobs ===
IRC Nick: {{{field|Nick}}}
+
  
=== Geographic Location ===
+
After the cron daemon has been emerged, you may see a message to run <tt>emerge --config</tt> to configure your cron daemon to process system cron jobs. System cron jobs are scripts that are installed by various packages into the following directories:
  
Please enter your geographic location. The following form can be used to look up the geographic coordinates for your city.
+
* <tt>/etc/cron.hourly</tt>
 +
* <tt>/etc/cron.daily</tt>
 +
* <tt>/etc/cron.weekly</tt>
 +
* <tt>/etc/cron.monthly</tt>
  
{{{
+
For example, you should find a <tt>/etc/cron.daily/man-db</tt> script that is installed by the <tt>man-db</tt> ebuild. This system cron job updates the man cache every day.
field
+
| Geoloc
+
| input type=googlemaps
+
| height=300
+
| width=100%
+
| autozoom=off
+
| zoom=2
+
}}}
+
  
=== Location Name ===
+
You may choose to enable your cron daemon so that it runs system cron jobs, or choose not to. Enabling a cron daemon to run system cron jobs will result in a bit more activity on your system, but should ensure that the system runs more optimally most of the time (caching of man pages, etc.)
  
Now, please enter your location name, in ''City, State/Province, Country'' format. Please use full country names such as "United States of America."
+
If you would like to have your system run system cron jobs, use <tt>emerge --config</tt> as specified in the emerge output:
  
'''Location name'''
+
<console>
{{{field|Location name|required|list}}}
+
# ##i##emerge --config sys-process/fcron
 +
Configuring pkg... * This is going to set up fcron to execute check_system_crontabs. * In this configuration, you're no longer free to edit the systab * at your leisure, at it'll be rewritten the moment the crontabs * are modified.Rebuilding fcron systab.2013-10-19 21:20:38  INFO installing file /tmp/fcrontab.84pova for user systabModifications will be taken into account right now.</console>
  
=== Funtoo Roles ===
+
Your cron daemon is now configured to automatically run system cron jobs.
  
Below, you can define your role in the Funtoo Linux Universe. Are you a user, contributor or developer? You can also enter a role description as well as beginning and end dates, which are useful if your role has changed over time. A role with no end date specified indicates an active role.
+
[[Category:System]]
 
+
'''Click "Add Role" to add a role: '''
+
 
+
{{{field|Roles|holds template}}}
+
 
+
=== Blogs ===
+
 
+
This feature, not yet enabled, will allow you to manage your blog syndication from your user page.
+
 
+
{{{field|Blogs|holds template}}}
+
 
+
{{{end template}}}
+
 
+
{{{for template|Role|multiple|add button text=Add Role|embed in field=Person[Roles]}}}
+
'''Role type:''' {{{field|Role type|mandatory|input type=dropdown}}}
+
'''Role desc/special powers:''' {{{field|Role desc|mandatory}}}
+
'''Start date:''' {{{field|Start date|input type=datepicker|date format=d M yy}}}
+
'''End date:''' {{{field|End date|input type=datepicker|date format=d M yy}}}
+
{{{end template}}}
+
 
+
{{{for template|Blog|multiple|add button text=Add blog|embed in field=Person[Blogs]}}}
+
'''Name:''' {{{field|Name|mandatory}}}
+
'''URL:''' {{{field|URL|mandatory}}}
+
'''Syndicate on:''' {{{field|Syndicate||list|input type=checkboxes|values from category=Blog Syndication}}}
+
{{{end template}}}
+
 
+
'''Your personal wiki text''' -- this is where you can enter free-form information about yourself, using MediaWiki syntax. You can also edit this via the "Edit" button after you save your page.
+
 
+
{{{standard input|free text|rows=20}}}
+
 
+
{{{standard input|summary}}}
+
 
+
{{{standard input|minor edit}}} {{{standard input|watch}}}
+
 
+
{{{standard input|save}}} {{{standard input|preview}}} {{{standard input|changes}}} {{{standard input|cancel}}}
+
</includeonly>
+

Revision as of 21:27, 19 October 2013

Introduction

Cron daemons allow you to configure certain tasks to be run at specific times. Installing a cron daemon is a good idea because some packages may assume that you have a cron daemon installed and create jobs to update their databases with a cron daemon. There are several different loggers available to Funtoo users:

  • Fcron
  • Cronie
  • Vixie-Cron

Installation

To install the cron daemon, run the following command:

#  emerge --ask fcron

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] sys-process/cronbase-0.3.2-r1
[ebuild  N     ] sys-process/fcron-3.1.2-r2  USE="mta pam readline system-crontab -debug (-selinux)" LINGUAS="-fr" 

 Would you like to merge these packages? [Yes/No] yes

Now enable the cron init script so that is starts when your system boots, and enable the cron daemon:

# rc-update add fcron default
* service fcron added to runlevel default
# rc
 * Caching service dependencies ...              [ ok ]
 * Starting fcron ...                            [ ok ]

System Cron Jobs

After the cron daemon has been emerged, you may see a message to run emerge --config to configure your cron daemon to process system cron jobs. System cron jobs are scripts that are installed by various packages into the following directories:

  • /etc/cron.hourly
  • /etc/cron.daily
  • /etc/cron.weekly
  • /etc/cron.monthly

For example, you should find a /etc/cron.daily/man-db script that is installed by the man-db ebuild. This system cron job updates the man cache every day.

You may choose to enable your cron daemon so that it runs system cron jobs, or choose not to. Enabling a cron daemon to run system cron jobs will result in a bit more activity on your system, but should ensure that the system runs more optimally most of the time (caching of man pages, etc.)

If you would like to have your system run system cron jobs, use emerge --config as specified in the emerge output:

# emerge --config sys-process/fcron
Configuring pkg... * This is going to set up fcron to execute check_system_crontabs. * In this configuration, you're no longer free to edit the systab * at your leisure, at it'll be rewritten the moment the crontabs * are modified.Rebuilding fcron systab.2013-10-19 21:20:38  INFO installing file /tmp/fcrontab.84pova for user systabModifications will be taken into account right now.

Your cron daemon is now configured to automatically run system cron jobs.