aboutsummaryrefslogtreecommitdiff
path: root/src/rc/start-stop-daemon.c
AgeCommit message (Collapse)Author
2013-09-23start-stop-daemon: remove the quiet variableWilliam Hubbs
The suppression of output is controlled in the e* functions themselves, so there is no need for a variable to test in start-stop-daemon. X-Gentoo-Bug: 482396 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=482396
2013-08-26start-stop-daemon: remove redundant test of the quiet valueWilliam Hubbs
The einfo() function tests for the EINFO_QUIET environment variable directly, and this is the variable that is set by the --quiet flag, so there was no reason for this test to exist.
2013-08-26start-stop-daemon: fix --quiet switchWilliam Hubbs
The --quiet switch wasn't really quiet, because we changed it to report errors. I am changing it back due to discussions on the listed bugs. X-Gentoo-Bug: 482396 X-Gentoo-Bug: 439174 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=482396 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=439174
2013-07-25Add support for DragonFly BSDGary
2012-10-17Spacing fixesWilliam Hubbs
2012-09-12Silence the right get_pid() callChristian Ruppert
2012-09-12Silence get_pid(), OpenRC will give the process some time to create the PID ↵Christian Ruppert
file and the first get__pid() call may fail.
2012-08-19Do not silence errorsChristian Ruppert
2012-05-06add a new ARRAY_SIZE macro and use itMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-02-23Skip pam if running as rootWilliam Hubbs
Reported-by: Piotr Karbowski <piotr.karbowski@gmail.com> X-Gentoo-Bug: 386623 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=386623
2011-11-19rc: fix style around case_RC_COMMON_GETOPTMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-11-09ssd: fix building when SYS_ioprio_set is missingMike Frysinger
Older glibc's might not provide this. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-09-01Start-stop-daemon: remove call to pam_authenticateDiego
2011-06-30Add --startas/-a back to the optstringChristian Ruppert
X-Gentoo-Bug: 373609 X-Gentoo-Bug-URL: https://bugs.gentoo.org/373609
2011-06-29drop useless "All rights reserved" noticeMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-27Only print the deprecation warning for --chuid/-c when using itJoe Harvell
The deprecation warning has been printed when using the replecement functions as well, bug 373243.
2011-06-05Warn if deprecated commandline options are used for start-stop-daemonChristian Ruppert
2011-01-17start-stop-daemon: use termios.h rather than sys/termios.hMike Frysinger
POSIX specifies termios.h, not sys/termios.h. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-01-17Style fix: "while (" not "while(".Robin H. Johnson
2011-01-17Clean up all trailing whitespace in src/.Robin H. Johnson
2009-12-14start-stop-daemon can now set process IO scheduling.Roy Marples
2009-10-15fix wait time for gentoo bug 288495William Hubbs
The wait time was in seconds. This patch converts it to milliseconds.
2009-09-04Add -P to start-stop-daemon to display a . for each second elapsed.Roy Marples
Fixes #197.
2009-09-04Really fix --signal 0Roy Marples
2009-09-04Fix signed error.Roy Marples
2009-09-01Allow any valid numeric signal and not just what we define.Roy Marples
2009-05-23Move non compiled libraries from /lib/rc to /libexec/rcRoy Marples
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-07Unset PAM environment variables if not setRoy Marples
2009-05-01Add (c) to CopyrightRoy Marples
2009-04-30Avoid more gcc warning about not checking return values ...Roy Marples
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.