aboutsummaryrefslogtreecommitdiff
path: root/src/rc/start-stop-daemon.c
AgeCommit message (Collapse)Author
2009-04-23Improve style for KNFRoy Marples
2009-04-22Add the -i, --interpreted option.Roy Marples
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-19-w, --wait secondsRoy Marples
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-02-10Fix unmask option, thanks to douglas@openplans.org, #146Roy Marples
2009-01-12Fix ordering, #139 thanks to Matthias.Roy Marples
2009-01-11CopyrightRoy Marples
2009-01-11Ensure that $HOME and $USER are always set, #139Roy Marples
2008-12-28Parse retry schedule correctly, #129. Thanks to vaeth.Roy Marples
2008-12-23We should match on the correct args for stopping daemons when pidfilesRoy Marples
are not being used.
2008-11-12Save a needless malloc when re-creating PATH.Roy Marples
2008-11-11Don't set user info unless stated.Roy Marples
2008-11-10Fix stopping with a faulty pidfile.Roy Marples
2008-11-03Fix sending signals, #121.Roy Marples
2008-10-30Plug a leak and expand exec also.Roy Marples
2008-10-30Allow ~ and ~user to expand for chdir and chroot.Roy Marples
2008-10-30Fix --name when stopping, Gentoo #243088.Roy Marples
2008-10-29Properly set PAM enviornment variables after opening session.Roy Marples
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-06#ifdef atexit cleanups calling free as the OS should do this for us, but ↵Roy Marples
valgrind debuggers need it.
2008-09-26Stop ssd from waiting by default - most daemons are good now.Roy Marples
2008-09-22Our match arguments could be different from the exec arguments, as only the ↵Roy Marples
kernel should set script arguments.
2008-09-22Allow interpreted daemons to detect interperter options.Roy Marples
2008-09-18Clean up some compile warnings.Roy Marples
2008-09-17Allow interpreted daemons to use s-s-d a little easier.Roy Marples
2008-08-20Actually set the umask.Roy Marples
2008-08-20Add -k,--umask option, Gentoo #232455.Roy Marples
2008-07-27Attempt to make s-s-d simpler by not enforcing the need for a full path and ↵Roy Marples
maybe working better with interpreted scripts.
2008-07-08STAILQ -> TAILQRoy Marples
2008-05-27Be quiet when checking at start.Roy Marples
2008-05-27When stopping with a pidfile, only read the pid once incase it vanishes but ↵Roy Marples
the process still hangs around.
2008-04-17Cast to unsigned char for ctype calls.Roy Marples
2008-03-26Add license blurb to a few files and append my email to my name.Roy Marples
2008-03-19Typo.Roy Marples
2008-03-19SVCNAME -> RC_SVCNAME, but export SVCNAME still for compat.Roy Marples
2008-03-17Punt the rc_strcatpaths function and use snprintf instead to save on ↵Roy Marples
expensive malloc calls.
2008-03-17rc_find_pids now returns RC_PIDLIST instead of a NULL terminated array.Roy Marples
2008-03-16Remove null terminated char ** lists in favour of RC_STRINGLIST, using TAILQ ↵Roy Marples
from queue(3). Refactor code style around the BSD KNF.
2008-03-11RC_SERVICE now points to the service file, so daemons can recall us directly.Roy Marples
2008-02-25With --quiet, we should quiet the daemon we're starting too.Roy Marples
2008-02-24Force the specification of a pidfile or process name if daemon is a script. ↵Roy Marples
Alternatively, document the use of starting the script interpreter and passing the daemon as an option.
2008-02-22Welcome to 2008.Roy Marples
2008-02-19Fix verbose without --exec.Roy Marples
2008-02-19We should remove stale pidfiles and service daemon info if we didn't find ↵Roy Marples
anything to stop, bug #25.
2008-02-17We need to be able to locate pids by argv, instead of just argv0.Roy Marples
2008-02-11Just use the extern applet var.Roy Marples
2008-02-01Constantise as much as possible so that it reduces COW usage.Roy Marples
2008-02-01Use sigaction over signal.Roy Marples
2008-01-30Use the variable instead of type for sizeof.Roy Marples
2008-01-22Quiet some more lint warnings.Roy Marples
2008-01-21Checking first char for null is more efficient than strlen.Roy Marples
2008-01-14strip trailing newlinesMike Frysinger