Skip to content

Commit f29e626

Browse files
Add some content to the existing line (#2712)
* Add some content to the existing line * Update 11-tasks.md Fix one line that would have become passive voice. Accepting the rest of the changes. --------- Co-authored-by: sspencerwire <[email protected]>
1 parent 30fb251 commit f29e626

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/books/admin_guide/11-tasks.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Users in this file are not allowed to use `cron`.
9999

100100
If it is empty, all users can use `cron`.
101101

102-
By default, `/etc/cron.deny` exists and is empty and `/etc/cron.allow` does not exist.
102+
By default, `/etc/cron.deny` exists and is empty and `/etc/cron.allow` does not exist. When two files exist at the same time, the system only uses the `cron.allow` content as the judgment basis and completely ignores the existence of `cron.deny` files.
103103

104104
### Allowing a user
105105

@@ -112,20 +112,20 @@ user1
112112

113113
### Prohibit a user
114114

115-
Only **user2** will not be able to use `cron`.
115+
Only **user2** will not be able to use `cron`. Note that the `/etc/cron.allow` file cannot exist.
116116

117117
```bash
118118
[root]# vi /etc/cron.deny
119119
user2
120120
```
121121

122-
`cron.allow` must not be present.
122+
If the same user exists in `/etc/cron.deny` and `/etc/cron.allow` at the same time, the user can use cron normally.
123123

124124
## Scheduling tasks
125125

126-
When a user schedules a task, a file with his name is created under `/var/spool/cron/`.
126+
When a user schedules a task, there is a file created with his name under `/var/spool/cron/`.
127127

128-
This file contains all the information the `crond` needs to know regarding all tasks created by this user, the commands or programs to run, and when to run them (hour, minute, day ...).
128+
This file contains all the information the `crond` needs to know regarding all tasks created by this user, the commands or programs to run, and when to run them (hour, minute, day ...). Note that the minimum time unit that `crond` can recognize is 1 minute. There are similar scheduling tasks in RDBMS (such as MySQL), in which time-based scheduling tasks are called "Event Scheduler", the minimum time unit it can recognize is 1 second, and event based scheduling tasks are called "Triggers".
129129

130130
![Cron tree](images/tasks-001.png)
131131

0 commit comments

Comments
 (0)