parent
4a07e810b1
commit
df24dbb071
9 changed files with 79 additions and 6 deletions
@ -0,0 +1,7 @@ |
|||||||
|
{% if itop_cron_user is defined and itop_cron_pass is defined %} |
||||||
|
auth_user = {{ itop_cron_user }} |
||||||
|
auth_pwd = {{ itop_cron_pass }} |
||||||
|
{% endif %} |
||||||
|
|
||||||
|
size_min = 20 # in MB |
||||||
|
time_limit = 40 # in minutes |
@ -0,0 +1,14 @@ |
|||||||
|
[Unit] |
||||||
|
Description=iTop {{ itop_id }} background tasks |
||||||
|
|
||||||
|
[Service] |
||||||
|
Type=oneshot |
||||||
|
ExecStart=/bin/php{{ itop_php_version }} \ |
||||||
|
-d session.save_path={{ itop_root_dir }}/sessions \ |
||||||
|
{{ itop_root_dir }}/web/webservices/cron.php \ |
||||||
|
--param_file={{ itop_root_dir }}/etc/cron.params \ |
||||||
|
--verbose=1 |
||||||
|
User={{ itop_php_user }} |
||||||
|
Group={{ itop_php_user }} |
||||||
|
|
||||||
|
|
@ -0,0 +1,8 @@ |
|||||||
|
[Unit] |
||||||
|
Description=iTop {{ itop_id }} background tasks |
||||||
|
|
||||||
|
[Timer] |
||||||
|
OnCalendar=*:0/5 |
||||||
|
|
||||||
|
[Install] |
||||||
|
WantedBy=timers.target |
Loading…
Reference in new issue