Commit Graph

771 Commits

Author SHA1 Message Date
Roy Marples ee53e6ad29 -w, --wait seconds
New option so you can set the number of seconds to wait for and
check the daemon is still running.
The old code that periodically polled wasn't that reliable - in this 
case simpler == better.
Fixes #160
2009-04-19 18:20:49 +00:00
Roy Marples 3579663173 Don't leak the lock fd. 2009-04-18 19:54:04 +00:00
Roy Marples 657cb3a6eb Fix compile on FreeBSD. 2009-04-18 00:57:17 +00:00
Roy Marples c9e24a0494 Move status to runscript.sh so init scripts can override it, #159
Return 32 if crashed, #163
2009-04-18 00:09:03 +00:00
Roy Marples ee54bb9372 Using fifos for locking can be error prone.
flocks are safer, as we only use tmpfs for our lock files.

I don't know how this works for inactive just yet though ...
2009-04-17 22:55:11 +00:00
Roy Marples dea9e11a69 When logging, stdout isn't always a tty, which is the case for VPS
systems, Thanks to mwrobel - fixes #106.
2009-04-02 23:55:19 +00:00
Roy Marples 077b2d3ba8 Report if service is not executable. 2009-02-28 14:12:19 +00:00
Roy Marples 907ca8a89f Set errno when service does not exist better. 2009-02-28 14:12:03 +00:00
Roy Marples f38ef00939 Fix unit test. 2009-02-23 10:43:24 +00:00
Roy Marples 749938d439 Style. 2009-02-23 09:35:57 +00:00
Roy Marples 6cc68e21cf Fix return value for tests. 2009-02-12 10:43:30 +00:00
Roy Marples 069590d97f Fix unmask option, thanks to douglas@openplans.org, #146 2009-02-10 23:11:17 +00:00
Roy Marples 3fc17f5966 Store the file skewed against. 2009-02-10 15:25:28 +00:00
Roy Marples 415fe87d8c Clean up some compiler warnings. 2009-01-29 13:29:04 +00:00
Roy Marples 417a817d25 noinit makes more sense than noinitd 2009-01-18 20:02:50 +00:00
Roy Marples 30a7a3a9bf Fix locale with svnversion, #140 thanks to Matthias Schwarzott. 2009-01-14 14:32:56 +00:00
Roy Marples 5208a1de29 yes should be YES 2009-01-13 11:04:37 +00:00
Roy Marples abcc4c5c72 Don't allow SYSVINIT parameters through anymore.
RC_REBOOT is now yes when rebooting.
Document the special reboot runlevel.
2009-01-13 11:02:00 +00:00
Roy Marples fcf1cce549 rc_newer/older_than only report file if time_t is a pointer, so it
should take precedence in the argument list.
2009-01-13 09:11:31 +00:00
Roy Marples 3d37005a3d We now warn about clock skews
rc-update -u will force a regen of the dep tree
rc_newer_than and rc_olderthan now take another two parameters for newest/oldest file and mtime
2009-01-12 23:53:13 +00:00
Roy Marples a52472c3c3 Fix ordering, #139 thanks to Matthias. 2009-01-12 10:24:47 +00:00
Roy Marples f23822e082 Copyright 2009-01-12 10:24:00 +00:00
Roy Marples 8a9a2d5fe9 Use snprintf instead of strlcpy to save on size if not available. 2009-01-12 08:31:03 +00:00
Roy Marples a33554ab18 Copyright 2009-01-11 17:17:04 +00:00
Roy Marples baf0ce64f5 Ensure that $HOME and $USER are always set, #139 2009-01-11 17:09:13 +00:00
Roy Marples 26f70a5277 Style 2009-01-10 12:18:00 +00:00
Roy Marples a063035b37 Make _SVNVER_SH more readable. 2009-01-02 22:51:47 +00:00
Roy Marples 213cef1739 Fix version for releases. 2009-01-02 16:48:42 +00:00
Roy Marples 386ee57432 Fix compile, #136 2009-01-02 15:11:15 +00:00
Roy Marples f4b8366942 Parse retry schedule correctly, #129. Thanks to vaeth. 2008-12-28 14:05:33 +00:00
Roy Marples 7ad40abf64 Our error messages don't have full stops at the end 2008-12-23 10:42:25 +00:00
Roy Marples 7e12abe035 Typo. 2008-12-23 10:41:33 +00:00
Roy Marples 4dba5b1ff1 Disallow hotplug to run during sysinit, but allow elsewhere. Fixes #131. 2008-12-23 10:40:27 +00:00
Roy Marples 53e2bec385 We should match on the correct args for stopping daemons when pidfiles
are not being used.
2008-12-23 10:15:41 +00:00
Roy Marples 803dbbf0c8 Allow rc_runlevel/softlevel to set runlevel from kernel commandline. 2008-12-21 01:15:02 +00:00
Roy Marples 9e5e60f257 Store interactive mode after sysinit, #128 thanks to Matthias Schwarzott. 2008-12-13 22:20:21 +00:00
Roy Marples 6bf0289f33 Warn about stopping sysinit services, thanks to Matthias Schwarzott. Fixes #126. 2008-12-11 14:50:58 +00:00
Roy Marples dc712a109e runlevel override works correctly again. 2008-12-04 17:30:26 +00:00
Roy Marples 1acbfcf5ca Report invalid runlevels. 2008-12-04 17:17:09 +00:00
Roy Marples f8210050e5 If we're building from subversion, brand the binary as such. 2008-12-04 13:12:46 +00:00
Roy Marples 38e6c9ba5c make ignore now configures the sv:ignore property. 2008-12-04 12:38:23 +00:00
Roy Marples 2c98c5326a Punt .gitignore files. 2008-12-04 12:12:09 +00:00
Roy Marples 57f90a42ba Include hotplugged services in our start list. 2008-12-01 08:46:50 +00:00
Roy Marples bde35d03ed Actally show hotplugged services. 2008-12-01 08:46:25 +00:00
Roy Marples 8b76e1d2e0 Ignore interupts when waiting for processes to finish. Also, style fixes. 2008-11-28 10:48:01 +00:00
Roy Marples b859710cc8 Style. 2008-11-28 10:47:17 +00:00
Roy Marples e84f71596e Not needed. 2008-11-27 21:14:52 +00:00
Roy Marples 23e73957a0 Switch from select to poll and improve the no prefixing of eend calls. 2008-11-27 21:14:43 +00:00
Roy Marples 2537a07e10 Switch from select to poll and improve the no prefixing of eend calls. 2008-11-27 21:05:39 +00:00
Roy Marples 5403e70313 Save more screen space by removing the space befor the * for einfo and friends. Also remove the leading space before ... for ebegin. 2008-11-26 10:46:33 +00:00