Joachim Nilsson
1a16aab970
queue.h: Upgrade to a newer slightly bugfiex version of OpenBSD queue.h
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2014-11-03 20:56:11 +01:00
Joachim Nilsson
8247344f0d
helpers.c:set_hostname() - Fix resource and memory leaks.
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2014-10-31 15:26:49 +01:00
Joachim Nilsson
2fdd64a2d8
helpers.c:run() - Fix resource and memory leaks.
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2014-10-31 15:16:00 +01:00
Joachim Nilsson
22ed4e7f73
svc.c - Break out nested function.
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2014-10-31 14:58:13 +01:00
Joachim Nilsson
327ac9f931
libite:rsync.c - Break out nested function.
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2014-10-31 14:56:51 +01:00
Joachim Nilsson
5ad0c38fe8
Sanity check plugpath as well, no point in searching for plugins otherwise.
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2014-10-30 22:11:23 +01:00
Joachim Nilsson
757911f149
Bump version for release and update copyright years.
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
1.9
2014-04-21 16:03:54 +02:00
Joachim Nilsson
35b771fb42
Add empty space for formatting.
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2014-04-21 15:51:33 +02:00
Joachim Nilsson
720f1b0e5b
Strip output when loading .conf files.
...
If not standard finit.conf, then we want to show just the base name.
E.g., loading first /etc/finit.conf then /etc/finit.d/services.conf
Loading configuration ............. vs
Loading services configuration ....
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2014-04-21 15:46:09 +02:00
Joachim Nilsson
292a3be515
lite.h: Add some helper string comparison methods.
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2014-04-21 15:45:23 +02:00
Joachim Nilsson
5ed407e493
helpers.c: Fix mix of off-by-one errors in new print() code.
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2014-04-21 14:09:23 +02:00
Joachim Nilsson
40988b901c
Unify print_desc() & print_result() in print() and refactor ...
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2014-04-21 14:05:56 +02:00
Joachim Nilsson
26d49b2027
Yet another minor bugfix to new include function.
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2014-04-21 12:05:55 +02:00
Joachim Nilsson
10386ee4de
Bug fix and document new include <CONF> syntax.
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2014-04-21 12:03:10 +02:00
Joachim Nilsson
773d2e65d6
README: Update docs on extended syntax and behavior for tty setting
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2014-04-21 11:17:31 +02:00
Joachim Nilsson
3e29d883fa
tty.c:tty_start() - Fix strcmp() foobar from f6f2895, must use strncmp()
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2014-04-21 11:08:34 +02:00
Joachim Nilsson
f6f2895524
Add support for a fallback shell if no tty is setup
...
Try to do better by the user, by default, if no tty is specified in the
finit.conf. This way the user will at least have a way to interact with
the system and repair it.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2014-04-19 22:58:20 +02:00
Joachim Nilsson
62287f8fcc
Add support for including .conf files.
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2014-04-19 22:56:19 +02:00
Joachim Nilsson
be3257f805
print_desc() - Allow arguments to be NULL.
...
Signed-off-by: Joachim Nilsson <joachim.nilsson@westermo.se >
2014-04-19 22:25:56 +02:00
Joachim Nilsson
1bf3aa528a
Fix duplicate link and cleanup contact section.
...
Signed-off-by: Joachim Nilsson <joachim.nilsson@westermo.se >
2014-04-19 19:31:00 +02:00
Joachim Nilsson
056236c9f8
Freshen up README, TODO, and .conf example, spell check.
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2014-04-19 19:19:57 +02:00
Joachim Nilsson
71fff76111
svc.[ch]: Fix possible out of bounds and NULL ptr deref
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2014-04-12 16:41:20 +02:00
Joachim Nilsson
1095724e5c
libite: Fix cppcheck warnings in rsync unit test
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2014-04-12 16:34:57 +02:00
Joachim Nilsson
e81c2f2f90
libite: Minor style cleanup of fsendfile()
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2014-04-12 16:21:41 +02:00
Joachim Nilsson
9f91b4c050
libite: Simplify and fix another memleak in copyfile()
...
- Simplify: reduce indentation depth
- Always check for error condition first, cleaner code
- Make sure buffer is always freed, use same exit everyhere
- Use readable, but still short, local variable names
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2014-04-12 16:11:59 +02:00
Joachim Nilsson
7ada824e3e
Makefile: Add support for make check to run cppcheck
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2014-04-12 16:08:30 +02:00
Joachim Nilsson
7cf7591f0a
run_getty(): Handle STDIO descriptors better.
...
The cppcheck tool raised an alert to the missing close() for
stdin when a console is opened for a getty. This patch fixes
that warning and also makes the code slighlty more readable.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2014-04-12 15:15:43 +02:00
Joachim Nilsson
143a257c25
libite: Copy utility fixes and new functionality
...
- Add support for symlinks to copyfile()
- Fix memory leak in copy_filep()
- New function, fsendfile(), copy data between FILE streams
Also, minor whitespace and coding style cleanup.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2014-04-12 15:08:56 +02:00
Joachim Nilsson
1d98647c54
Add missing include for system header file
...
Only affects externally built plugins.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2014-04-12 14:31:31 +02:00
Joachim Nilsson
7cd52b36a1
Always print service start/stop at start of line
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2014-04-12 14:30:34 +02:00
Joachim Nilsson
b033052647
TODO: Further simplify example inetd syntax.
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2014-04-10 10:34:06 +02:00
Joachim Nilsson
4fcf2533a6
Minor indentation fix to TODO.
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2014-04-10 10:29:06 +02:00
Joachim Nilsson
a8a103a521
Update TODO with inetd proposal, and minor README cleanup.
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2014-04-10 10:26:46 +02:00
Joachim Nilsson
12b09bb80b
Improve CI status integration in README and minor cleanup.
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2014-02-25 09:23:16 +01:00
Joachim Nilsson
49aaffcf9a
Update README with CI status.
2014-02-25 00:00:43 +01:00
Joachim Nilsson
afbe628f17
Travis CI integration
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2014-02-24 23:46:28 +01:00
Joachim Nilsson
1d6cbe31fe
Initial support for restarting lost processes during norespawn
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2014-02-24 23:33:38 +01:00
Jonas Johansson
cb874d7a94
Handle SIGHUP requst from service when switching runlevel
...
Signed-off-by: Jonas Johansson <jonasj76@gmail.com >
2014-02-24 23:33:38 +01:00
Joachim Nilsson
d7598ca672
Update URL of example to new download FTP.
2013-06-08 15:37:31 +02:00
Joachim Nilsson
ff8e494abd
Update README with a slightly more clear and catchy intro.
2013-06-08 14:49:28 +02:00
Joachim Nilsson
dfaa6dd3f8
Minor ReST syntax fix for improved display in GitHub
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2013-06-08 11:23:24 +02:00
Joachim Nilsson
849f3fbb28
Explain finit.conf commands more in README, update example .conf
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
1.8
2013-06-07 14:09:46 +02:00
Joachim Nilsson
329acf24bb
Bump version and start preparing docs for release of 1.8
...
Renamed ChangeLog to NEWS and fixed doc style to use ReST, like the
README and TODO files.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2013-06-07 09:16:00 +02:00
Joachim Nilsson
bf40278131
Delay start of TTYs to let system stabilize at boot.
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2013-06-06 18:19:27 +02:00
Joachim Nilsson
4f2cf52eff
Minor cleanup.
2013-06-06 18:19:27 +02:00
Joachim Nilsson
f96fb855ce
tty: Clear PID to be able to respawn it.
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2013-06-06 18:19:27 +02:00
Joachim Nilsson
65f0be8a55
Simplify banner further, let distributions patch us instead.
...
Revert crazy BANNER macro idea from 5ba7bc1 . It is simply too difficult to
set -DBANNER='"Some distributions specific text"' in a parent Makefile
without entering Shell/Make escape hell ... instead, downstream will
have to patch the banner() function.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2013-06-06 18:19:26 +02:00
Joachim Nilsson
bcfcafdb7c
tty: Use calloc() instead of malloc() to prevent uninitialized errors.
...
On some platforms GCC does not zero the heap. This can lead to
serious problems, e.g., tty->pid may be non-zero while never
having been started.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2013-06-06 18:19:26 +02:00
Joachim Nilsson
c57bd066d1
Build fix, if ROOTDIR was set linking failed. Use TOPDIR internally.
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2013-06-06 18:19:26 +02:00
Joachim Nilsson
4171fbdfd3
Store RUN_LVL in UTMP and change RUNLEVEL_BOOT from 10 to 0
...
Standard init implementations save current and previous runlevels
in utmp, now finit does too. Also, the initial runlevel at boot
has changed from 10 to the more obvious 0.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2013-06-06 18:19:26 +02:00