travelport-czech/tpcrontools 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

travelport-czech/tpcrontools

最新稳定版本:1.0.1

Composer 安装命令:

composer require travelport-czech/tpcrontools

包简介

Tool for manage cron jobs.

README 文档

README

  • cronctl - Add or remove jobs from user's crontab

cronctl

usage: cronctl [-h] (--list | --add TYPE | --remove) [-f] path [path ...]

Tool for manage jobs in crontab

positional arguments:
  path         Path to folder with job scripts

optional arguments:
  -h, --help   show this help message and exit
  --list       List all robots sorted by type
  --add TYPE   Add jobs of the appropriate type from the specified path
  --remove     Remove all jobs with given path
  -f, --force  Store changes into crontab without confirmation

Example of job file header:
  #!/usr/bin/env bash

  #PT:cron:10 1,2,3,4 * * *
  #PDI:cron:40 5,6,7,8 * * *

With this example "cronctl --add I /robots/scripts" adds to the current user's crontab row:
40 5,6,7,8 * * * /robots/scripts/example.sh

For example, if you want to add production jobs from folder /opt/robots

  cronctl --add P /opt/robots

if we want to uninstall all jobs from folder /opt/alpha/robots (because our application moves from alpha to beta stage):

  cronctl -f --remove /opt/alpha/robots

统计信息

  • 总下载量: 2.43k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 3
  • Forks: 0
  • 开发语言: Python

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-02-15