summaryrefslogtreecommitdiff
path: root/utils
AgeCommit message (Collapse)AuthorFilesLines
2009-05-26s-s-d: Refactor process schedule priority range checksGuillem Jover1-10/+18
Move into a new function, so we avoid warnings due to unused variables.
2009-05-22s-s-d: Use the same exact name for all Hurd OS macrosGuillem Jover1-9/+9
Use the properly capitalized version of the macro. This fixes a FTBFS on GNU/Hurd due to a missmatched define usage. Regression introduced in fc860a55b26aee3d774ed010c43822491852bbc2.
2009-05-21s-s-d: Warn if --name argument is longer than supported by kernelGuillem Jover1-0/+12
Most kernels have a length limit on the process name stored in-kernel. For now the checks done on Linux compatible procfs might hit this limit and be unable to properly track the correct process. So warn in that case and recommend switching to the more reliable --exec. Closes: #353015, #519128
2009-05-21s-s-d: Add new warning functionGuillem Jover1-2/+13
Switch a previous ad-hoc warning message to use the new warning function, which additionally properly prints to stderr.
2009-05-10s-s-d: Print valid values for IO scheduler class in --help outputGuillem Jover1-0/+3
2009-05-10s-s-d: Only print fatal errno string if it was non-zeroGuillem Jover1-1/+5
2009-05-10s-s-d: Preserve faulting errno when printing reason in fatal functionGuillem Jover1-1/+2
2009-03-27Global review of error checking associated to strtol functionsRaphael Hertzog1-1/+1
Several calls to strtol() or strtoul() are not followed by a proper check that ensures that they have parsed an integer value (and not an empty string).
2009-02-26s-s-d: Support setting the IO scheduler class and priorityChris Coulson1-1/+97
Add new option -I, --iosched <class[:priority]>. Closes: #443535 Signed-off-by: Guillem Jover <guillem@debian.org>
2009-01-23Cleanup .gitignore filesGuillem Jover1-5/+0
Move common ignore matches to the top-level .gitignore. Force directory matching by adding a trailing /. Remove unused matches (enoent). Add missing matches (t.tmp and autom4te.cache/).
2009-01-14s-s-d: Support setting the process scheduler policy and priorityGuillem Jover1-1/+89
Add new option -P, --procsched <policy[:priority]>. Closes: #175740
2009-01-14s-s-d: Use a new xstrdup that never returns NULL instead of strdupGuillem Jover1-1/+12
2009-01-10s-s-d: Behave the same way whether --chuid gets a user name or a uidGuillem Jover1-2/+7
Otherwise it was failing to setup the default group for the user if it had not been specified and the HOME environment variable. Closes: #368000
2009-01-04s-s-d: Use SIGTERM instead of literal 15Guillem Jover1-1/+1
2008-08-26Unify inclusion usage of config.hGuillem Jover1-1/+1
Do not include it from header files. And use <> instead of "".
2008-08-04s-s-d: Use kill instead of /proc to check for pid existenceGuillem Jover1-10/+5
2008-08-04s-s-d: When checking for a pid call pid_is_exec on KVM systemsGuillem Jover1-0/+3
2008-08-04s-s-d: Move alternative function implementations togetherGuillem Jover1-182/+179
2008-08-04s-s-d: Use proper UTF-8 mu symbol for the unit in the commentGuillem Jover1-1/+1
2008-03-16s-s-d: Move 'return' inside preprocessor conditionalsErast Benson1-1/+2
So that it does not just return on non-handled OSes.
2008-03-16s-s-d: Use __sun instead of __sparc__ to define OSsunosErast Benson1-1/+1
2008-03-11Move GNU C attribute definitions to lib/dpkg-def.hGuillem Jover1-12/+2
2008-02-04Use functions from libcompat when those are not provided by the systemGuillem Jover1-1/+1
2008-01-30s-s-d: Documentation improvementsJustin Pryzby1-4/+4
Cosmetic fixes to start-stop-daemon output and man page. Document that --chuid will change the group even if it has not been specified. Add EXIT STATUS and EXAMPLE sections to man page.
2008-01-28Rename getopt to libcompatGuillem Jover1-2/+2
2008-01-25s-s-d: Use system timersub and fix timeval normalization in multiplicationAndreas PĂ„hlsson1-17/+4
Closes: #462225
2008-01-22s-s-d: Fix timeout computations for --retry optionGuillem Jover1-46/+29
This has not worked properly for a long time (maybe never), but came to light due to #460903's fix. Closes: #462104
2008-01-22s-s-d: Fix segfault when using --group w/o --chuidGuillem Jover1-3/+3
As a side effect, using --group alone works for the first time in years. Closes: #462072
2008-01-22s-s-d: Properly set the supplementary groups on --chuidGuillem Jover1-29/+17
Set the supplementary groups if the real user or group are different than the ones we should switch to. Closes: #462075
2008-01-22s-s-d: Change uid after changing gid and initalizing supplementary groupsGuillem Jover1-4/+4
Closes: #462018
2008-01-21s-s-d: Fix signed vs unsigned warning when comparing to getuid and getgidGuillem Jover1-2/+3
2008-01-21Use external gettext intl libraryGuillem Jover1-1/+1
When porting to other systems without gettext functionality, other applications might need it as well, so either use --with-libintl-prefix for a global library, or disable NLS support.
2008-01-21s-s-d: Refactor max open fd into a new function and coalesce close loopGuillem Jover1-7/+11
2008-01-20s-s-d: Change from 'Mandatory' to 'Matching' in --help outputGuillem Jover1-1/+1
Suggested by Justin Pryzby.
2008-01-18s-s-d: Clarify in help output that --name is one of the required optionsGuillem Jover1-5/+7
Closes: #354999
2008-01-18s-s-d: Add missing semicolonGuillem Jover1-1/+1
2008-01-17s-s-d: Move version output from --help to --versionGuillem Jover1-6/+10
2008-01-17s-s-d: Check uid and gid before calling setuid, setgid and initgroupsGuillem Jover1-5/+32
Based on a patch by Samuel Thibault. Closes: #222524
2008-01-16s-s-d: Make --quiet silence --testGuillem Jover1-5/+8
Closes: #367998
2008-01-16s-s-d: Keep retrying even if the daemon removed the pidfileGuillem Jover1-1/+6
Closes: #460903
2008-01-16s-s-d: Fix indentationGuillem Jover1-161/+169
2008-01-16Use the perl POSIX module instead of the enoent helper binaryGuillem Jover2-17/+0
2008-01-16Use NULL instead of 0Guillem Jover1-10/+10
2008-01-07Fix signed vs unsigned value comparisonsGuillem Jover1-3/+3
Those were making some code to never be executed. This fixes most of the bugs introduced with commit ea93ed48c17445d01b67f3fa8a20a5a644a89e5b.
2008-01-02s-s-d: Remove redundant function declarationsGuillem Jover1-5/+0
2008-01-02Use NONRETURNING and PRINTFFORMAT instead of NONRETURNPRINTFFORMAT attributeGuillem Jover1-3/+1
2008-01-01s-s-d: Do not print 'failed to kill' warning when doing pid pollingSamuel Thibault1-2/+3
Closes: #157305, #352554
2007-11-29Define several private functions and variables as staticGuillem Jover1-1/+1
2007-08-10Add *.o to .gitignore.Guillem Jover1-0/+1
2007-05-15 * utils/start-stop-daemon.c (daemonize): Use _exit instead of exit, toGuillem Jover1-2/+2
avoid side effects while the parents terminate.