]> granicus.if.org Git - fcron/log
fcron
7 years agofixed bug preventing audit from being disabled -- thanks Thomas Deutschmann master
Thibault Godouet [Sat, 19 Nov 2016 21:06:12 +0000 (21:06 +0000)]
fixed bug preventing audit from being disabled -- thanks Thomas Deutschmann

7 years agomoved adhoc test away from main source code (not usable as is) ver3_3_0
Thibault Godouet [Sun, 14 Aug 2016 09:51:00 +0000 (10:51 +0100)]
moved adhoc test away from main source code (not usable as is)

7 years agosystemd init: added LimitCORE
Thibault Godouet [Sun, 14 Aug 2016 09:09:37 +0000 (10:09 +0100)]
systemd init: added LimitCORE

7 years agoadded is_loop_in_queue() for debug purposes
Thibault Godouet [Sun, 14 Aug 2016 08:58:56 +0000 (09:58 +0100)]
added is_loop_in_queue() for debug purposes

7 years agoupdated changelog: systemd was retro-ported to 3.2.1
Thibault Godouet [Sun, 14 Aug 2016 08:57:35 +0000 (09:57 +0100)]
updated changelog: systemd was retro-ported to 3.2.1

7 years agocomment improvements
Thibault Godouet [Sat, 30 Jul 2016 16:17:59 +0000 (17:17 +0100)]
comment improvements

7 years agouse job_queue_remove()
Thibault Godouet [Sat, 30 Jul 2016 16:17:26 +0000 (17:17 +0100)]
use job_queue_remove()

7 years agomark as dev release
Thibault Godouet [Sun, 26 Jun 2016 17:41:34 +0000 (18:41 +0100)]
mark as dev release

7 years agoMerge branch 'suspend'
Thibault Godouet [Sun, 26 Jun 2016 17:39:33 +0000 (18:39 +0100)]
Merge branch 'suspend'

7 years agoboot-install now supports systemd (and refactored while I was at it)
Thibault Godouet [Sun, 12 Jun 2016 21:26:53 +0000 (22:26 +0100)]
boot-install now supports systemd (and refactored while I was at it)

7 years agoupdated copyright years to 2000-2016
Thibault Godouet [Sun, 26 Jun 2016 15:13:34 +0000 (16:13 +0100)]
updated copyright years to 2000-2016

7 years agoadded runatresume / @resume suspend
Thibault Godouet [Sun, 26 Jun 2016 14:56:00 +0000 (15:56 +0100)]
added runatresume / @resume

7 years agoboot-install now supports systemd (and refactored while I was at it)
Thibault Godouet [Sun, 12 Jun 2016 21:26:53 +0000 (22:26 +0100)]
boot-install now supports systemd (and refactored while I was at it)

7 years agoOn Linux, use specific system APIs to detect suspend/resume and measure suspend duration
Thibault Godouet [Sun, 12 Jun 2016 20:28:28 +0000 (21:28 +0100)]
On Linux, use specific system APIs to detect suspend/resume and measure suspend duration

7 years agorefactored suspend handling code into suspend.[ch]
Thibault Godouet [Sun, 12 Jun 2016 10:25:59 +0000 (11:25 +0100)]
refactored suspend handling code into suspend.[ch]
Also applied code style.

7 years agorefactored socket.[ch] into select.[ch] and fcrondyn_srv.[ch]
Thibault Godouet [Sun, 12 Jun 2016 09:32:03 +0000 (10:32 +0100)]
refactored socket.[ch] into select.[ch] and fcrondyn_srv.[ch]
This is to prepare for getting notifed of time changes via timerfd_create() and select ()

7 years agoMerge branch 'master' into suspend
Thibault Godouet [Thu, 9 Jun 2016 14:59:20 +0000 (15:59 +0100)]
Merge branch 'master' into suspend

7 years agoFixed occasional 1s slippage. Disable fcrondyn if we don't have gettimeofday() (or...
Thibault Godouet [Thu, 9 Jun 2016 08:36:43 +0000 (09:36 +0100)]
Fixed occasional 1s slippage. Disable fcrondyn if we don't have gettimeofday() (or it won't work anyway)
This was due to a race condition between when time_to_sleep is run and when we compute how long to sleep for, which could happen in the following second: if that happened we end up sleeping for 1s instead of not sleeping at all.  The fix was to replace time_to_sleep() by next_wake_time().

7 years agogrammar error in doc
Thibault Godouet [Tue, 7 Jun 2016 19:56:08 +0000 (20:56 +0100)]
grammar error in doc

7 years agoinstall-restart: use service (works with systemd) instead of /etc/init.d/fcron
Thibault Godouet [Tue, 7 Jun 2016 19:55:19 +0000 (20:55 +0100)]
install-restart: use service (works with systemd) instead of /etc/init.d/fcron

7 years agoforce background for systemd (e.g. if debug mode enabled)
Thibault Godouet [Sun, 5 Jun 2016 17:47:42 +0000 (18:47 +0100)]
force background for systemd (e.g. if debug mode enabled)

8 years agorecv() returns ssize_t (not size_t)
Thibault Godouet [Mon, 2 May 2016 09:33:40 +0000 (10:33 +0100)]
recv() returns ssize_t (not size_t)

8 years agofixed typo in install doc
Thibault Godouet [Mon, 2 May 2016 08:30:47 +0000 (09:30 +0100)]
fixed typo in install doc

8 years agoadded my_time() to use the more accurate (at least on recent Linux systems) gettimeof...
Thibault Godouet [Fri, 12 Jun 2015 21:54:50 +0000 (22:54 +0100)]
added my_time() to use the more accurate (at least on recent Linux systems) gettimeofday() where it is available

8 years agoadded min/max convenience functions
Thibault Godouet [Fri, 12 Jun 2015 20:18:24 +0000 (21:18 +0100)]
added min/max convenience functions

8 years ago@-line can now be run every second
Thibault Godouet [Wed, 10 Jun 2015 21:18:34 +0000 (22:18 +0100)]
@-line can now be run every second

9 years agoSet From: header on emails. Added mailfrom() option.
Thibault Godouet [Sun, 12 Oct 2014 10:20:04 +0000 (11:20 +0100)]
Set From: header on emails. Added mailfrom() option.

9 years agochange version to 3.2.1
Thibault Godouet [Sun, 12 Oct 2014 10:19:47 +0000 (11:19 +0100)]
change version to 3.2.1

9 years agoMerge branch 'master' of ssh://git.tuxfamily.org/gitroot/fcron/fcron
Thibault Godouet [Sun, 5 Oct 2014 08:39:48 +0000 (09:39 +0100)]
Merge branch 'master' of ssh://git.tuxfamily.org/gitroot/fcron/fcron

9 years agoupdated to-do list
Thibault Godouet [Sun, 5 Oct 2014 08:26:09 +0000 (09:26 +0100)]
updated to-do list

9 years agoUpdated to-do list
Thibault Godouet [Fri, 19 Sep 2014 18:18:57 +0000 (19:18 +0100)]
Updated to-do list

9 years agoAdded note in install doc about fcron's user and group
Thibault Godouet [Tue, 26 Aug 2014 21:01:47 +0000 (22:01 +0100)]
Added note in install doc about fcron's user and group

9 years agoupdated change logs ver3_2_0
Thibault Godouet [Sun, 6 Jul 2014 10:06:36 +0000 (11:06 +0100)]
updated change logs

9 years agoClose pipe in job.c even if there is an error reading it, to avoid a fd leak (thanks...
Thibault Godouet [Sun, 29 Jun 2014 16:36:58 +0000 (17:36 +0100)]
Close pipe in job.c even if there is an error reading it, to avoid a fd leak (thanks Pavel Stano)

9 years agoImprove support for hardware suspend (to memory or to disk)
Thibault Godouet [Sun, 15 Jun 2014 20:26:11 +0000 (21:26 +0100)]
Improve support for hardware suspend (to memory or to disk)

9 years agoquote job shell commands in logs to make the messages clearer
Thibault Godouet [Thu, 12 Jun 2014 13:10:24 +0000 (14:10 +0100)]
quote job shell commands in logs to make the messages clearer

9 years agoUse '|' as the separator of fcrondyn columns (clearer than a space)
Thibault Godouet [Thu, 12 Jun 2014 07:42:28 +0000 (08:42 +0100)]
Use '|' as the separator of fcrondyn columns (clearer than a space)

9 years agodon't fully disable @-line on apparent nextexe integer overflows: instead set nextexe...
Thibault Godouet [Wed, 11 Jun 2014 09:01:52 +0000 (10:01 +0100)]
don't fully disable @-line on apparent nextexe integer overflows: instead set nextexe=now+cl_runfreq

9 years agoUpdated version, release notes
Thibault Godouet [Mon, 9 Jun 2014 18:10:32 +0000 (19:10 +0100)]
Updated version, release notes

9 years agoprint dates and time in standard formats.
Thibault Godouet [Mon, 9 Jun 2014 17:09:02 +0000 (18:09 +0100)]
print dates and time in standard formats.

9 years agoadded to-do entry ver3_1_3
Thibault Godouet [Sun, 11 May 2014 09:43:27 +0000 (10:43 +0100)]
added to-do entry

9 years agodon't include debug files in tar
Thibault Godouet [Sat, 10 May 2014 17:20:03 +0000 (18:20 +0100)]
don't include debug files in tar

9 years agoincreased version number
Thibault Godouet [Sat, 10 May 2014 17:19:43 +0000 (18:19 +0100)]
increased version number

9 years agoupdated copyright years to 2000-2014
Thibault Godouet [Sat, 10 May 2014 17:14:52 +0000 (18:14 +0100)]
updated copyright years to 2000-2014

10 years agoremove extra "\n" in fcron log messages about fcrondyn connections
Thibault Godouet [Fri, 18 Apr 2014 17:31:43 +0000 (18:31 +0100)]
remove extra "\n" in fcron log messages about fcrondyn connections

10 years agoFixed SELinux issue with Linux user being used instead of the SELinux user
Thibault Godouet [Fri, 18 Apr 2014 15:56:23 +0000 (16:56 +0100)]
Fixed SELinux issue with Linux user being used instead of the SELinux user

10 years agofcrontab no longer crashes if mailto is empty -- fixed issues with string options
Thibault Godouet [Tue, 15 Apr 2014 23:05:50 +0000 (00:05 +0100)]
fcrontab no longer crashes if mailto is empty -- fixed issues with string options

10 years agofcrondyn with readline no longer crashes when receiving EOF
Thibault Godouet [Sun, 13 Apr 2014 17:57:10 +0000 (18:57 +0100)]
fcrondyn with readline no longer crashes when receiving EOF

10 years agofixed minor bug in fcronsighup: no need to close() after fclose() on stream from...
Thibault Godouet [Sun, 13 Apr 2014 17:48:17 +0000 (18:48 +0100)]
fixed minor bug in fcronsighup: no need to close() after fclose() on stream from fdopen()

10 years agofcrondyn -x no longer print null characters at the end of the command output
Thibault Godouet [Sun, 13 Apr 2014 16:54:05 +0000 (17:54 +0100)]
fcrondyn -x no longer print null characters at the end of the command output

10 years agoapplied indent
Thibault Godouet [Sun, 13 Apr 2014 16:50:44 +0000 (17:50 +0100)]
applied indent

10 years agofixed bug where LONG_MAX could be used for localtime() etc, which is too big
Thibault Godouet [Sun, 13 Apr 2014 10:06:45 +0000 (11:06 +0100)]
fixed bug where LONG_MAX could be used for localtime() etc, which is too big

10 years agoupdated doc
Thibault Godouet [Sun, 13 Apr 2014 09:56:57 +0000 (10:56 +0100)]
updated doc

10 years agoimproved fcrondyn's usage message
Thibault Godouet [Sun, 13 Apr 2014 09:56:06 +0000 (10:56 +0100)]
improved fcrondyn's usage message

10 years agofile save: sync data before renaming file for extra robustness
Thibault Godouet [Sun, 13 Apr 2014 09:53:41 +0000 (10:53 +0100)]
file save: sync data before renaming file for extra robustness

10 years agoignore autotools's aclocal.m4
Thibault Godouet [Sun, 13 Apr 2014 09:53:00 +0000 (10:53 +0100)]
ignore autotools's aclocal.m4

10 years agofixed fcrondyn socket credential auth on Solaris 10
Thibault Godouet [Thu, 16 Jan 2014 22:09:38 +0000 (22:09 +0000)]
fixed fcrondyn socket credential auth on Solaris 10

10 years agoFurther fix for Solaris 10 compilation and credentials extraction from socket
Thibault Godouet [Thu, 16 Jan 2014 21:39:24 +0000 (21:39 +0000)]
Further fix for Solaris 10 compilation and credentials extraction from socket

10 years agoFixed compilation on Solaris 10 (missing strndup()) and Solaris credentials extractio...
Thibault Godouet [Thu, 16 Jan 2014 21:28:52 +0000 (21:28 +0000)]
Fixed compilation on Solaris 10 (missing strndup()) and Solaris credentials extraction from socket

10 years agoError if the users tries to use root as the fcron user.
Thibault Godouet [Tue, 27 Aug 2013 16:48:55 +0000 (17:48 +0100)]
Error if the users tries to use root as the fcron user.

11 years agoDon't strip binaries if in debug mode
Thibault Godouet [Mon, 15 Apr 2013 22:13:58 +0000 (23:13 +0100)]
Don't strip binaries if in debug mode

11 years agoUpdated copyright years to 2013 ver3_1_2
Thibault Godouet [Sun, 3 Mar 2013 20:01:05 +0000 (20:01 +0000)]
Updated copyright years to 2013

11 years agoUpdated change log
Thibault Godouet [Sun, 3 Mar 2013 19:56:24 +0000 (19:56 +0000)]
Updated change log

11 years agoApplied indentation with 'make indent'
Thibault Godouet [Mon, 4 Feb 2013 19:37:42 +0000 (19:37 +0000)]
Applied indentation with 'make indent'

11 years agoFixed configure --without-sendmail, and compilation errors when sendmail is disabled
Thibault Godouet [Sun, 3 Feb 2013 13:03:52 +0000 (13:03 +0000)]
Fixed configure --without-sendmail, and compilation errors when sendmail is disabled
Also don't check if email should be output if sendmail is disabled
(Thank you Thomas Trepl for pointing out the problem and submitting a patch)

11 years agoFixed fcron crash bug when using fcrondyn.
Thibault Godouet [Sun, 3 Feb 2013 11:12:29 +0000 (11:12 +0000)]
Fixed fcron crash bug when using fcrondyn.
This bug was introduced in 25e9c80848acb89e6320ed6261a4d1c75b60b1c8, and we were using a fd after xclose() was called on it, so its value was no longer valid.
Audited the code for similar problems and didn't find any other.

11 years agoInline runas wouldn't work with Vixie-cron style shortcut lines.
Thibault Godouet [Sun, 3 Feb 2013 10:34:53 +0000 (10:34 +0000)]
Inline runas wouldn't work with Vixie-cron style shortcut lines.

11 years agoadded unit tests on todo list
Thibault Godouet [Sat, 19 Jan 2013 13:44:51 +0000 (13:44 +0000)]
added unit tests on todo list

11 years agoRemoving auto-generated test files
Thibault Godouet [Sat, 19 Jan 2013 13:04:38 +0000 (13:04 +0000)]
Removing auto-generated test files

11 years agoMoved to version 3.1.2
Thibault Godouet [Sun, 13 Jan 2013 17:35:30 +0000 (17:35 +0000)]
Moved to version 3.1.2

11 years agoFixed bug in logging to a file and made file closure more robust
Thibault Godouet [Sun, 13 Jan 2013 17:31:17 +0000 (17:31 +0000)]
Fixed bug in logging to a file and made file closure more robust
- when logging to a file, fcron would log a line to the pid file
- adding helpers functions to close files properly: check for errors, and set FILE* to NULL / fd to -1

11 years agosystemd: installation fix + don't kill jobs when killing fcron
Thibault Godouet [Sat, 5 Jan 2013 11:26:22 +0000 (11:26 +0000)]
systemd: installation fix + don't kill jobs when killing fcron

11 years agoupdated changes ver3_1_1
Thibault Godouet [Tue, 1 Jan 2013 18:47:59 +0000 (18:47 +0000)]
updated changes

11 years agoFixed changes
Thibault Godouet [Tue, 1 Jan 2013 18:44:36 +0000 (18:44 +0000)]
Fixed changes

11 years agoAdded optional readline requirement for compilation
Thibault Godouet [Tue, 1 Jan 2013 18:39:03 +0000 (18:39 +0000)]
Added optional readline requirement for compilation

11 years agoUpdated documentation
Thibault Godouet [Tue, 1 Jan 2013 18:24:52 +0000 (18:24 +0000)]
Updated documentation

11 years agoApplied indentation
Thibault Godouet [Tue, 1 Jan 2013 18:14:10 +0000 (18:14 +0000)]
Applied indentation

11 years agoonly call xopenlog when necessary
Thibault Godouet [Tue, 1 Jan 2013 18:13:34 +0000 (18:13 +0000)]
only call xopenlog when necessary

11 years agoMerge branch 'log-to-file'
Thibault Godouet [Tue, 1 Jan 2013 17:56:27 +0000 (17:56 +0000)]
Merge branch 'log-to-file'

Conflicts:
convert-fcrontab.c
fcron.c
log.c
subs.c

11 years agotweaked fcron logging to file
Thibault Godouet [Tue, 1 Jan 2013 17:33:53 +0000 (17:33 +0000)]
tweaked fcron logging to file
- only enabled for fcron via a command line option (rather than fcron.conf)
  I doubt people need this feature for command line tools, and we would need to manage the log file perms more closely to allow all tools to write to it
- reworked log.c/log.h: more sensible function names, better error checks
- changed the line format when logging to files/console
- added documentation on logging to file

11 years agobetter errno management in open_as_user()
Thibault Godouet [Tue, 1 Jan 2013 17:32:57 +0000 (17:32 +0000)]
better errno management in open_as_user()

11 years agoRenamed fcronlog in fcronconf.h to fcronlogfile, to avoid shadowing the function...
Matt Signorini [Fri, 28 Dec 2012 01:59:05 +0000 (12:59 +1100)]
Renamed fcronlog in fcronconf.h to fcronlogfile, to avoid shadowing the function fcronlog.

Modified convert-fcrontab to include fcronconf.o, to fix an undefined
symbol issue with fcronlogfile. Also added code to parse a config file with
read_conf, and an extra flag '-c' to specify a config file. Docs have not
been updated in this commit.

11 years agoModifications to log.c to ensure that a log file specified in fcron.conf takes preced...
Matt Signorini [Thu, 27 Dec 2012 05:06:56 +0000 (16:06 +1100)]
Modifications to log.c to ensure that a log file specified in fcron.conf takes precedence over syslog.

11 years agoAdded code to facilitate logging to a separate file.
Matt Signorini [Thu, 27 Dec 2012 05:00:44 +0000 (16:00 +1100)]
Added code to facilitate logging to a separate file.

- modified fcronconf.c and .h to parse an fcronlog entry in the conf file.

- modified xopenlog and xcloselog to handle a file, if specified, and added
a procedure fcronlog, which prints a message to the log file.

11 years agoFixed bug in change_user_setup_env() which could make fcron crash when sending a...
Thibault Godouet [Thu, 27 Dec 2012 17:48:11 +0000 (17:48 +0000)]
Fixed bug in change_user_setup_env() which could make fcron crash when sending a 'not run' email

11 years agoMerge remote-tracking branch 'origin/master'
Thibault Godouet [Wed, 26 Dec 2012 18:20:22 +0000 (18:20 +0000)]
Merge remote-tracking branch 'origin/master'

Conflicts:
fileconf.c

11 years agoAdded readline support to fcrondyn
Thibault Godouet [Wed, 26 Dec 2012 17:43:29 +0000 (17:43 +0000)]
Added readline support to fcrondyn

11 years agoApplied indentation with 'make indent'
Thibault Godouet [Mon, 24 Dec 2012 15:19:41 +0000 (15:19 +0000)]
Applied indentation with 'make indent'

11 years agoupdated to-do list
Thibault Godouet [Mon, 24 Dec 2012 11:53:01 +0000 (11:53 +0000)]
updated to-do list

11 years agoonly check for erroneous space if option takes an argument
Thibault Godouet [Thu, 20 Dec 2012 21:48:43 +0000 (21:48 +0000)]
only check for erroneous space if option takes an argument

11 years agoMoved to version 3.1.1
Thibault Godouet [Wed, 19 Dec 2012 22:11:37 +0000 (22:11 +0000)]
Moved to version 3.1.1

11 years agoUpdated copyright and marked as DEV release ver3_1_0
Thibault Godouet [Wed, 19 Dec 2012 18:50:18 +0000 (18:50 +0000)]
Updated copyright and marked as DEV release

11 years agoUpdated to-do list
Thibault Godouet [Wed, 19 Dec 2012 18:37:28 +0000 (18:37 +0000)]
Updated to-do list

11 years agorenamed 'doc' make target to 'documentation' or make gets confused with the 'doc...
Thibault Godouet [Wed, 19 Dec 2012 18:02:17 +0000 (18:02 +0000)]
renamed 'doc' make target to 'documentation' or make gets confused with the 'doc' directory

11 years agoensure the documentation is generated by "make all" rather than waiting for make...
Thibault Godouet [Wed, 19 Dec 2012 17:57:34 +0000 (17:57 +0000)]
ensure the documentation is generated by "make all" rather than waiting for make install

11 years agoAdded compilation requirements
Thibault Godouet [Wed, 19 Dec 2012 17:57:17 +0000 (17:57 +0000)]
Added compilation requirements

11 years agoupdated changes/todo
Thibault Godouet [Wed, 5 Dec 2012 22:25:52 +0000 (22:25 +0000)]
updated changes/todo

11 years agocosmetic change of socket.c so as indent works ok
Thibault Godouet [Wed, 5 Dec 2012 21:55:07 +0000 (21:55 +0000)]
cosmetic change of socket.c so as indent works ok

11 years agoAllow make parallelism: use $(MAKE) in Makefile and added dependencies
Thibault Godouet [Wed, 5 Dec 2012 21:19:06 +0000 (21:19 +0000)]
Allow make parallelism: use $(MAKE) in Makefile and added dependencies

11 years agoclearer error messages in gen-in.pl
Thibault Godouet [Wed, 5 Dec 2012 21:18:43 +0000 (21:18 +0000)]
clearer error messages in gen-in.pl