X-Git-Url: https://git.8kb.co.uk/?p=slony-i%2Fpg_sched;a=blobdiff_plain;f=README.md;h=c098b1bf3c93ddf536cf0599bea04817c72beee5;hp=516bcc7ab39d12c1228802e0a272a40d9222dc0c;hb=3a7ed4219be6890353b335441331f01f23e900d4;hpb=621e81d0afabd172670639501fb68102e8681fe3 diff --git a/README.md b/README.md index 516bcc7..c098b1b 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ If you require more complex schedules or multi-step tasks try ## Command line ```bash -$ pg_sched.pl -h -p -d -U -n -t -cl -m -l +$ pg_sched.pl -h -p -d -U -n -t
-cl -m -w -l -h Hostname of database containing schedule table DEFAULT = localhost -p Listening port of database containing schedule table @@ -33,8 +33,10 @@ $ pg_sched.pl -h -p -d -U -n -t DEFAULT = auto -m Comma separated list of slony sets on the master. 'all' for all DEFAULT = all - -l Lockfile used to prevent concurrent execution of tasks. + -w Lockfile used to prevent concurrent execution of tasks. DEFAULT = not used + -l File to log to. + DEFAULT = log to STDOUT instead ``` ##Example usage @@ -62,7 +64,7 @@ $ psql -U pg_sched -d mydb -f pg_sched.sql Add an entry to run from cron something like: ```cron - * * * * * myuser /home/myuser/pg_sched.pl -d mydb -U pg_sched >> /var/log/pg_sched.log 2>&1 + * * * * * myuser /home/myuser/pg_sched.pl -d mydb -U pg_sched -l /var/log/pg_sched.log > /dev/null 2>&1 ``` Insert a row into the table to create a task, e.g: