/incron/trunk/incron.conf.5 |
---|
1,4 → 1,4 |
.TH "incron.conf" "5" "0.5.7" "Lukas Jelinek" "incron documentation" |
.TH "incron.conf" "5" "0.5.8" "Lukas Jelinek" "incron documentation" |
.SH "NAME" |
/etc/incron.conf \- main config file for inotify cron (incron) |
.SH "DESCRIPTION" |
/incron/trunk/ict-main.cpp |
---|
5,7 → 5,7 |
* |
* inotify cron system |
* |
* Copyright (C) 2006, 2007 Lukas Jelinek, <lukas@aiken.cz> |
* Copyright (C) 2006, 2007, 2008 Lukas Jelinek, <lukas@aiken.cz> |
* |
* This program is free software; you can use it, redistribute |
* it and/or modify it under the terms of the GNU General Public |
25,6 → 25,7 |
#include <fcntl.h> |
#include <stdlib.h> |
#include <limits.h> |
#include <cstring> |
#include "inotify-cxx.h" |
#include "appargs.h" |
45,7 → 46,7 |
/// incrontab description string |
#define INCRONTAB_DESCRIPTION "incrontab - inotify cron table manipulator\n" \ |
"(c) Lukas Jelinek, 2006, 2007" |
"(c) Lukas Jelinek, 2006, 2007, 208" |
/// incrontab help string |
#define INCRONTAB_HELP INCRONTAB_DESCRIPTION "\n\n" \ |
64,7 → 65,7 |
"These options may be used:\n" \ |
" -u <USER>, --user=<USER> overrides current user (requires root privileges)\n" \ |
" -f <FILE>, --config=<FILE> overrides default configuration file (requires root privileges)\n\n" \ |
"For reporting bugs please use http:://bts.aiken.cz\n" |
"For reporting bugs please use http://bts.aiken.cz\n" |
/incron/trunk/incrontab.5 |
---|
1,4 → 1,4 |
.TH "incrontab" "5" "0.5.7" "Lukas Jelinek" "incron documentation" |
.TH "incrontab" "5" "0.5.8" "Lukas Jelinek" "incron documentation" |
.SH "NAME" |
incrontab \- tables for driving inotify cron (incron) |
.SH "DESCRIPTION" |
/incron/trunk/appargs.h |
---|
5,7 → 5,7 |
* |
* application arguments processor |
* |
* Copyright (C) 2007 Lukas Jelinek, <lukas@aiken.cz> |
* Copyright (C) 2007, 2008 Lukas Jelinek, <lukas@aiken.cz> |
* |
* This program is free software; you can redistribute it and/or |
* modify it under the terms of one of the following licenses: |
23,7 → 23,7 |
#ifndef APPARGS_H_ |
#define APPARGS_H_ |
#include <string> |
#include <cstring> |
#include <map> |
#include <deque> |
/incron/trunk/CHANGELOG |
---|
1,3 → 1,9 |
0.5.8 2008-12-29 |
* more includes added for GCC 4.3 compatibility (#0000178) |
* typo in help messages fixed (#0000172) |
* some warnings fixed (#0000372) |
0.5.7 2007-09-04 |
* man pages updated (mainly due to #0000157) |
* some includes added for GCC 4.3 compatibility (#0000158) |
/incron/trunk/LICENSE-X11 |
---|
1,4 → 1,4 |
Copyright (c) 2006,2007 Lukas Jelinek |
Copyright (c) 2006, 2007, 2008 Lukas Jelinek |
Permission is hereby granted, free of charge, to any person |
obtaining a copy of this software and associated documentation |
/incron/trunk/incroncfg.cpp |
---|
5,7 → 5,7 |
* |
* incron configuration |
* |
* Copyright (C) 2007 Lukas Jelinek, <lukas@aiken.cz> |
* Copyright (C) 2007, 2008 Lukas Jelinek, <lukas@aiken.cz> |
* |
* This program is free software; you can use it, redistribute |
* it and/or modify it under the terms of the GNU General Public |
16,6 → 16,7 |
#include <fstream> |
#include <sstream> |
#include <cstring> |
#include "incroncfg.h" |
/incron/trunk/README |
---|
1,7 → 1,7 |
inotify cron system |
(c) Lukas Jelinek, 2006, 2007 |
(c) Lukas Jelinek, 2006, 2007, 2008 |
1. About |
2. Requirements |
/incron/trunk/incroncfg.h |
---|
5,7 → 5,7 |
* |
* incron configuration |
* |
* Copyright (C) 2007 Lukas Jelinek, <lukas@aiken.cz> |
* Copyright (C) 2007, 2008 Lukas Jelinek, <lukas@aiken.cz> |
* |
* This program is free software; you can use it, redistribute |
* it and/or modify it under the terms of the GNU General Public |
18,7 → 18,7 |
#define INCRONCFG_H_ |
#include <string> |
#include <cstring> |
#include <map> |
/// Configuration class. |
/incron/trunk/appinst.cpp |
---|
3,7 → 3,7 |
/** |
* \file appinst.cpp |
* |
* Copyright (C) 2007 Lukas Jelinek, <lukas@aiken.cz> |
* Copyright (C) 2007, 2008 Lukas Jelinek, <lukas@aiken.cz> |
* |
* This program is free software; you can redistribute it and/or |
* modify it under the terms of one of the following licenses: |
/incron/trunk/incrontab.cpp |
---|
5,7 → 5,7 |
* |
* inotify cron system |
* |
* Copyright (C) 2006, 2007 Lukas Jelinek, <lukas@aiken.cz> |
* Copyright (C) 2006, 2007, 2008 Lukas Jelinek, <lukas@aiken.cz> |
* |
* This program is free software; you can use it, redistribute |
* it and/or modify it under the terms of the GNU General Public |
/incron/trunk/icd-main.cpp |
---|
5,7 → 5,7 |
* |
* inotify cron system |
* |
* Copyright (C) 2006, 2007 Lukas Jelinek, <lukas@aiken.cz> |
* Copyright (C) 2006, 2007, 2008 Lukas Jelinek, <lukas@aiken.cz> |
* |
* This program is free software; you can use it, redistribute |
* it and/or modify it under the terms of the GNU General Public |
23,6 → 23,7 |
#include <errno.h> |
#include <sys/poll.h> |
#include <sys/stat.h> |
#include <cstring> |
#include "inotify-cxx.h" |
#include "appinst.h" |
45,7 → 46,7 |
/// incrontab description string |
#define INCROND_DESCRIPTION "incrond - inotify cron daemon\n" \ |
"(c) Lukas Jelinek, 2006, 2007" |
"(c) Lukas Jelinek, 2006, 2007, 2008" |
/// incrontab help string |
#define INCROND_HELP INCROND_DESCRIPTION "\n\n" \ |
58,7 → 59,7 |
" -k, --kill terminates running instance of incrond\n" \ |
" -f <FILE>, --config=<FILE> overrides default configuration file (requires root privileges)\n" \ |
" -V, --version prints program version\n\n" \ |
"For reporting bugs please use http:://bts.aiken.cz\n" |
"For reporting bugs please use http://bts.aiken.cz\n" |
99,7 → 100,9 |
do {} while (read(g_cldPipe[0], g_cldPipeBuf, CHILD_PIPE_BUF_LEN) > 0); |
// now write one character |
write(g_cldPipe[1], "X", 1); |
if (write(g_cldPipe[1], "X", 1) <= 0) { |
syslog(LOG_WARNING, "cannot send SIGCHLD token to notification pipe"); |
} |
break; |
default:; |
} |
382,7 → 385,12 |
try { |
if (g_daemon) |
daemon(0, 0); |
if (daemon(0, 0) == -1) { |
syslog(LOG_CRIT, "daemonizing failed: (%i) %s", errno, strerror(errno)); |
fprintf(stderr, "daemonizing failed: (%i) %s\n", errno, strerror(errno)); |
ret = 1; |
goto error; |
} |
try { |
if (!app.Lock()) { |
/incron/trunk/incrond.8 |
---|
1,4 → 1,4 |
.TH "incrond" "8" "0.5.6" "Lukas Jelinek" "incron documentation" |
.TH "incrond" "8" "0.5.8" "Lukas Jelinek" "incron documentation" |
.SH "NAME" |
incrond \- inotify cron (incron) daemon |
/incron/trunk/inotify-cxx.cpp |
---|
5,7 → 5,7 |
* |
* inotify C++ interface |
* |
* Copyright (C) 2006, 2007 Lukas Jelinek <lukas@aiken.cz> |
* Copyright (C) 2006, 2007, 2008 Lukas Jelinek <lukas@aiken.cz> |
* |
* This program is free software; you can redistribute it and/or |
* modify it under the terms of one of the following licenses: |
/incron/trunk/appinst.h |
---|
3,7 → 3,7 |
/** |
* \file appinst.h |
* |
* Copyright (C) 2007 Lukas Jelinek, <lukas@aiken.cz> |
* Copyright (C) 2007, 2008 Lukas Jelinek, <lukas@aiken.cz> |
* |
* This program is free software; you can redistribute it and/or |
* modify it under the terms of one of the following licenses: |
/incron/trunk/incrontab.h |
---|
5,7 → 5,7 |
* |
* inotify cron system |
* |
* Copyright (C) 2006, 2007 Lukas Jelinek, <lukas@aiken.cz> |
* Copyright (C) 2006, 2007, 2008 Lukas Jelinek, <lukas@aiken.cz> |
* |
* This program is free software; you can use it, redistribute |
* it and/or modify it under the terms of the GNU General Public |
/incron/trunk/incron.conf.example |
---|
1,7 → 1,7 |
# |
# *** incron example configuration file *** |
# |
# (c) Lukas Jelinek, 2007 |
# (c) Lukas Jelinek, 2007, 2008 |
# |
/incron/trunk/inotify-cxx.h |
---|
5,7 → 5,7 |
* |
* inotify C++ interface |
* |
* Copyright (C) 2006, 2007 Lukas Jelinek, <lukas@aiken.cz> |
* Copyright (C) 2006, 2007, 2008 Lukas Jelinek, <lukas@aiken.cz> |
* |
* This program is free software; you can redistribute it and/or |
* modify it under the terms of one of the following licenses: |
/incron/trunk/strtok.cpp |
---|
5,7 → 5,7 |
* |
* string tokenizer |
* |
* Copyright (C) 2006, 2007 Lukas Jelinek, <lukas@aiken.cz> |
* Copyright (C) 2006, 2007, 2008 Lukas Jelinek, <lukas@aiken.cz> |
* |
* This program is free software; you can redistribute it and/or |
* modify it under the terms of one of the following licenses: |
/incron/trunk/usertable.cpp |
---|
5,7 → 5,7 |
* |
* inotify cron system |
* |
* Copyright (C) 2006, 2007 Lukas Jelinek, <lukas@aiken.cz> |
* Copyright (C) 2006, 2007, 2008 Lukas Jelinek, <lukas@aiken.cz> |
* |
* This program is free software; you can use it, redistribute |
* it and/or modify it under the terms of the GNU General Public |
25,6 → 25,7 |
#include <grp.h> |
#include <stdlib.h> |
#include <sys/stat.h> |
#include <cstring> |
#include "usertable.h" |
#include "incroncfg.h" |
/incron/trunk/COPYING |
---|
1,6 → 1,6 |
inotify cron system |
Copyright (C) 2006,2007 Lukas Jelinek, <lukas@aiken.cz> |
Copyright (C) 2006,2007,2008 Lukas Jelinek, <lukas@aiken.cz> |
This program is free software; you can redistribute it and/or |
modify it under the terms of the GNU General Public License, |
/incron/trunk/strtok.h |
---|
5,7 → 5,7 |
* |
* string tokenizer |
* |
* Copyright (C) 2006 Lukas Jelinek, <lukas@aiken.cz> |
* Copyright (C) 2006, 2007, 2008 Lukas Jelinek, <lukas@aiken.cz> |
* |
* This program is free software; you can redistribute it and/or |
* modify it under the terms of one of the following licenses: |
/incron/trunk/usertable.h |
---|
5,7 → 5,7 |
* |
* inotify cron system |
* |
* Copyright (C) 2006, 2007 Lukas Jelinek, <lukas@aiken.cz> |
* Copyright (C) 2006, 2007, 2008 Lukas Jelinek, <lukas@aiken.cz> |
* |
* This program is free software; you can use it, redistribute |
* it and/or modify it under the terms of the GNU General Public |
/incron/trunk/appargs.cpp |
---|
5,7 → 5,7 |
* |
* application arguments processor |
* |
* Copyright (C) 2007 Lukas Jelinek, <lukas@aiken.cz> |
* Copyright (C) 2007, 2008 Lukas Jelinek, <lukas@aiken.cz> |
* |
* This program is free software; you can redistribute it and/or |
* modify it under the terms of one of the following licenses: |
20,6 → 20,8 |
*/ |
#include <cstring> |
#include "strtok.h" |
#include "appargs.h" |
/incron/trunk/incron.h |
---|
5,7 → 5,7 |
* |
* inotify cron system |
* |
* Copyright (C) 2006, 2007 Lukas Jelinek, <lukas@aiken.cz> |
* Copyright (C) 2006, 2007, 2008 Lukas Jelinek, <lukas@aiken.cz> |
* |
* This program is free software; you can use it, redistribute |
* it and/or modify it under the terms of the GNU General Public |
27,7 → 27,7 |
#define INCRONTAB_NAME "incrontab" |
/// Application version (release) |
#define INCRON_VERSION "0.5.7" |
#define INCRON_VERSION "0.5.8" |
/// Address for sending bugs |
#define INCRON_BUG_ADDRESS "<bugs@aiken.cz>" |
/incron/trunk/incrontab.1 |
---|
1,4 → 1,4 |
.TH "incrontab" "1" "0.5.6" "Lukas Jelinek" "incron documentation" |
.TH "incrontab" "1" "0.5.8" "Lukas Jelinek" "incron documentation" |
.SH "NAME" |
incrontab \- table manipulator for inotify cron (incron) |
.SH "SYNOPSIS" |