summaryrefslogtreecommitdiff
path: root/src/rc/start-stop-daemon.c
Commit message (Collapse)AuthorAge
* start-stop-daemon: fix do_stop callsWilliam Hubbs2013-10-06
| | | | | | | | | Several calls to do_stop were forcing the test parameter to be true, which was causing extra output to the terminal, such as: * Would send signal 0 to pid xxxxx This should only happen if the --test command line option was used.
* start-stop-daemon: fix eerorr calls in get_pidWilliam Hubbs2013-09-30
| | | | | | The eerror calls in this function make it too verbose, so change them to ewarnv() calls instead. This means that they will only print if the --verbose option is used or EINFO_VERBOSE=yes is set in the environment.
* start-stop-daemon: remove the verbose variableWilliam Hubbs2013-09-24
| | | | | | Along the same lines as the quiet variable, this is controlled by an environment variable for the einfo code, so we do not need a separate boolean flag.
* start-stop-daemon: remove the quiet variableWilliam Hubbs2013-09-23
| | | | | | | | 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
* start-stop-daemon: remove redundant test of the quiet valueWilliam Hubbs2013-08-26
| | | | | | 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.
* start-stop-daemon: fix --quiet switchWilliam Hubbs2013-08-26
| | | | | | | | | | 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
* Add support for DragonFly BSDGary2013-07-25
|
* Spacing fixesWilliam Hubbs2012-10-17
|
* Silence the right get_pid() callChristian Ruppert2012-09-12
|
* Silence get_pid(), OpenRC will give the process some time to create the PID ↵Christian Ruppert2012-09-12
| | | | file and the first get__pid() call may fail.
* Do not silence errorsChristian Ruppert2012-08-19
|
* add a new ARRAY_SIZE macro and use itMike Frysinger2012-05-06
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Skip pam if running as rootWilliam Hubbs2012-02-23
| | | | | | 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
* rc: fix style around case_RC_COMMON_GETOPTMike Frysinger2011-11-19
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* ssd: fix building when SYS_ioprio_set is missingMike Frysinger2011-11-09
| | | | | | Older glibc's might not provide this. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Start-stop-daemon: remove call to pam_authenticateDiego2011-09-01
|
* Add --startas/-a back to the optstringChristian Ruppert2011-06-30
| | | | | X-Gentoo-Bug: 373609 X-Gentoo-Bug-URL: https://bugs.gentoo.org/373609
* drop useless "All rights reserved" noticeMike Frysinger2011-06-29
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Only print the deprecation warning for --chuid/-c when using itJoe Harvell2011-06-27
| | | | | The deprecation warning has been printed when using the replecement functions as well, bug 373243.
* Warn if deprecated commandline options are used for start-stop-daemonChristian Ruppert2011-06-05
|
* start-stop-daemon: use termios.h rather than sys/termios.hMike Frysinger2011-01-17
| | | | | | POSIX specifies termios.h, not sys/termios.h. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Style fix: "while (" not "while(".Robin H. Johnson2011-01-17
|
* Clean up all trailing whitespace in src/.Robin H. Johnson2011-01-17
|
* start-stop-daemon can now set process IO scheduling.Roy Marples2009-12-14
|
* fix wait time for gentoo bug 288495William Hubbs2009-10-15
| | | | The wait time was in seconds. This patch converts it to milliseconds.
* Add -P to start-stop-daemon to display a . for each second elapsed.Roy Marples2009-09-04
| | | | Fixes #197.
* Really fix --signal 0Roy Marples2009-09-04
|
* Fix signed error.Roy Marples2009-09-04
|
* Allow any valid numeric signal and not just what we define.Roy Marples2009-09-01
|
* Move non compiled libraries from /lib/rc to /libexec/rcRoy Marples2009-05-23
| | | | | | | | 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.
* Unset PAM environment variables if not setRoy Marples2009-05-07
|
* Add (c) to CopyrightRoy Marples2009-05-01
|
* Avoid more gcc warning about not checking return values ...Roy Marples2009-04-30
|
* Improve style for KNFRoy Marples2009-04-23
|
* Add the -i, --interpreted option.Roy Marples2009-04-22
| | | | | | | | 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.
* -w, --wait secondsRoy Marples2009-04-19
| | | | | | | | | 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
* Fix unmask option, thanks to douglas@openplans.org, #146Roy Marples2009-02-10
|
* Fix ordering, #139 thanks to Matthias.Roy Marples2009-01-12
|
* CopyrightRoy Marples2009-01-11
|
* Ensure that $HOME and $USER are always set, #139Roy Marples2009-01-11
|
* Parse retry schedule correctly, #129. Thanks to vaeth.Roy Marples2008-12-28
|
* We should match on the correct args for stopping daemons when pidfilesRoy Marples2008-12-23
| | | | | are not being used.
* Save a needless malloc when re-creating PATH.Roy Marples2008-11-12
|
* Don't set user info unless stated.Roy Marples2008-11-11
|
* Fix stopping with a faulty pidfile.Roy Marples2008-11-10
|
* Fix sending signals, #121.Roy Marples2008-11-03
|
* Plug a leak and expand exec also.Roy Marples2008-10-30
|
* Allow ~ and ~user to expand for chdir and chroot.Roy Marples2008-10-30
|
* Fix --name when stopping, Gentoo #243088.Roy Marples2008-10-30
|
* Properly set PAM enviornment variables after opening session.Roy Marples2008-10-29
| | | | | | | Without this change, modules like pam_mktemp or pam_env and similar will be unable to change users' environments, like they are supposed to.