Roy Marples
7012630302
Allow any valid numeric signal and not just what we define.
2009-09-01 13:57:45 +01:00
Roy Marples
c0fd1b49e4
Move non compiled libraries from /lib/rc to /libexec/rc
...
OpenRC version is now stored as plaintext in /libexec/rc/version
Plugins (cursplash, splashutils) will have to be re-compiled to pickup
the new directories. State data needs to be moved from /lib/rc/init.d
to /libexec/rc/init.d as well.
2009-05-23 20:38:12 +01:00
Roy Marples
b2eb9f8a83
Unset PAM environment variables if not set
2009-05-07 12:20:59 +01:00
Roy Marples
658a220638
Add (c) to Copyright
2009-05-01 15:11:40 +01:00
Roy Marples
3d0e5175d8
Avoid more gcc warning about not checking return values ...
2009-04-30 19:56:43 +01:00
Roy Marples
ade85d4bd8
Improve style for KNF
2009-04-23 21:31:22 +00:00
Roy Marples
f326f688f6
Add the -i, --interpreted option.
...
This enables the code to include the daemons interpreter when matching
process name which fixes bug #164 .
Existing init scripts that rely on the old behaviour will need to be
fixed.
2009-04-22 10:45:01 +00:00
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
069590d97f
Fix unmask option, thanks to douglas@openplans.org, #146
2009-02-10 23:11:17 +00:00
Roy Marples
a52472c3c3
Fix ordering, #139 thanks to Matthias.
2009-01-12 10:24:47 +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
f4b8366942
Parse retry schedule correctly, #129 . Thanks to vaeth.
2008-12-28 14:05:33 +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
fe509db660
Save a needless malloc when re-creating PATH.
2008-11-12 10:55:42 +00:00
Roy Marples
937b1b2abf
Don't set user info unless stated.
2008-11-11 19:47:30 +00:00
Roy Marples
eafbed0366
Fix stopping with a faulty pidfile.
2008-11-10 20:57:03 +00:00
Roy Marples
8a76c27325
Fix sending signals, #121 .
2008-11-03 21:06:45 +00:00
Roy Marples
895c4f4149
Plug a leak and expand exec also.
2008-10-30 17:57:58 +00:00
Roy Marples
20380d3144
Allow ~ and ~user to expand for chdir and chroot.
2008-10-30 17:40:48 +00:00
Roy Marples
e1341e372b
Fix --name when stopping, Gentoo #243088 .
2008-10-30 16:26:05 +00:00
Roy Marples
53ddd6ca96
Properly set PAM enviornment variables after opening session.
...
Without this change, modules like pam_mktemp or pam_env and similar
will be unable to change users' environments, like they are supposed
to.
2008-10-29 21:35:45 +00:00
Roy Marples
cb44b0a46c
#ifdef atexit cleanups calling free as the OS should do this for us, but valgrind debuggers need it.
2008-10-06 15:02:32 +00:00
Roy Marples
c3e192a834
Stop ssd from waiting by default - most daemons are good now.
2008-09-26 23:58:57 +00:00
Roy Marples
53693367df
Our match arguments could be different from the exec arguments, as only the kernel should set script arguments.
2008-09-22 12:14:47 +00:00
Roy Marples
554d2fea19
Allow interpreted daemons to detect interperter options.
2008-09-22 10:45:01 +00:00
Roy Marples
80a17eb596
Clean up some compile warnings.
2008-09-18 13:09:51 +00:00
Roy Marples
39304745d4
Allow interpreted daemons to use s-s-d a little easier.
2008-09-17 16:56:23 +00:00
Roy Marples
fabee4dc2d
Actually set the umask.
2008-08-20 10:19:03 +00:00
Roy Marples
1ab1e9328a
Add -k,--umask option, Gentoo #232455 .
2008-08-20 10:02:11 +00:00
Roy Marples
cea206014d
Attempt to make s-s-d simpler by not enforcing the need for a full path and maybe working better with interpreted scripts.
2008-07-27 11:30:49 +00:00
Roy Marples
53401cd35f
STAILQ -> TAILQ
2008-07-08 10:48:21 +00:00
Roy Marples
aaaa0b50d8
Be quiet when checking at start.
2008-05-27 16:48:47 +00:00
Roy Marples
ca6f289c80
When stopping with a pidfile, only read the pid once incase it vanishes but the process still hangs around.
2008-05-27 16:42:28 +00:00
Roy Marples
f0aacec02e
Cast to unsigned char for ctype calls.
2008-04-17 10:19:58 +00:00
Roy Marples
15d34d0a16
Add license blurb to a few files and append my email to my name.
2008-03-26 17:53:37 +00:00
Roy Marples
5f091395c7
Typo.
2008-03-19 19:59:50 +00:00
Roy Marples
6159a32f39
SVCNAME -> RC_SVCNAME, but export SVCNAME still for compat.
2008-03-19 19:57:24 +00:00
Roy Marples
4c14666423
Punt the rc_strcatpaths function and use snprintf instead to save on expensive malloc calls.
2008-03-17 13:25:56 +00:00
Roy Marples
50a7697bf2
rc_find_pids now returns RC_PIDLIST instead of a NULL terminated array.
2008-03-17 09:59:52 +00:00
Roy Marples
cb9da6a262
Remove null terminated char ** lists in favour of RC_STRINGLIST, using TAILQ from queue(3). Refactor code style around the BSD KNF.
2008-03-16 17:00:56 +00:00
Roy Marples
40e12f6ba0
RC_SERVICE now points to the service file, so daemons can recall us directly.
2008-03-11 15:00:16 +00:00
Roy Marples
bf2cebf2d8
With --quiet, we should quiet the daemon we're starting too.
2008-02-25 10:51:05 +00:00
Roy Marples
d1f7f0a304
Force the specification of a pidfile or process name if daemon is a script. Alternatively, document the use of starting the script interpreter and passing the daemon as an option.
2008-02-24 23:09:15 +00:00
Roy Marples
ad780077d2
Welcome to 2008.
2008-02-22 12:07:34 +00:00
Roy Marples
f35f788187
Fix verbose without --exec.
2008-02-19 21:45:27 +00:00
Roy Marples
f95e0b2c3e
We should remove stale pidfiles and service daemon info if we didn't find anything to stop, bug #25 .
2008-02-19 10:18:26 +00:00
Roy Marples
27f97f2106
We need to be able to locate pids by argv, instead of just argv0.
2008-02-17 15:12:00 +00:00
Roy Marples
567f8e33f2
Just use the extern applet var.
2008-02-11 20:14:09 +00:00
Roy Marples
fef5d0af59
Constantise as much as possible so that it reduces COW usage.
2008-02-01 19:54:46 +00:00