Browse Source

fix packaging

tags/1.1.2.1
Vladimir Smagin 3 months ago
parent
commit
25147a94cc
5 changed files with 42 additions and 1 deletions
  1. +1
    -1
      .gitignore
  2. +17
    -0
      build/package/debian/etc/gogocron/gogocron.yml
  3. BIN
      build/package/debian/usr/bin/gogocron
  4. +14
    -0
      build/package/debian/usr/share/gogocron/samples/test1.yml
  5. +10
    -0
      build/package/debian/usr/share/gogocron/samples/test2.yml

+ 1
- 1
.gitignore View File

@@ -1,2 +1,2 @@
gogocron
./gogocron
*.deb

+ 17
- 0
build/package/debian/etc/gogocron/gogocron.yml View File

@@ -0,0 +1,17 @@
---
# ticktack_precision
#
# Precision means how frequently gogocron checks seconds number change. Lower
# interval gets more resources because check circle works faster. This parameter
# created for high precision requirements where maximum cron run time deviation
# can't be more than 10 ms.
#
# Value (milliseconds) from 10ms to 500ms
# default: 100ms
ticktack_precision: 100ms

# tasks_location
# Set where tasks yaml files located
# Value (string)
# default: /etc/gogocron/configs
tasks_location: /etc/gogocron/configs

BIN
build/package/debian/usr/bin/gogocron View File


+ 14
- 0
build/package/debian/usr/share/gogocron/samples/test1.yml View File

@@ -0,0 +1,14 @@
---
name: "TASK #1"
runsecond: "*/5"
logtype: full
user: vlad
gracefulstop: 30ss
env:
- TESTVAR="test variable"
commands:
- whoami
- sleep 3
- head -c 20 /dev/urandom |base64
- ls
- echo $TESTVAR

+ 10
- 0
build/package/debian/usr/share/gogocron/samples/test2.yml View File

@@ -0,0 +1,10 @@
---
name: "TASK #2"
runsecond: "*/15"
timeout: 1s
logtype: full
user: root
commands:
- "head -c 2 /dev/urandom |base64"
- "sleep 2"
- "echo ooops"

Loading…
Cancel
Save