aboutsummaryrefslogtreecommitdiff
path: root/debianutils/start_stop_daemon.c
AgeCommit message (Collapse)Author
2007-01-19openvt,getty,vfork_daemon_rexec,mount: tighten up fd cleanup codeDenis Vlasenko
(will close all fd's > 2 on daemonization now) getty: fix "getty -" support, and also do not try to chown/chmod "-" telnetd: fix "lost ctty" bug Yet another attempt on saner function names: bb_sanitize_server_stdio(0/1) -> bb_sanitize_stdio() + bb_daemonize();
2006-12-28bb_xget[pw/gr]nam were horribly misnamed - fixed.Denis Vlasenko
uidgid_get -> get_uidgid, add additional param (numeric_ok). Make chown use it. chown: fix "chown user: ...." install: fix incorrect use of bb_xget[pw/gr]nam
2006-12-17start_stop_daemon: make code a bit more readableDenis Vlasenko
2006-12-17start_stop_daemon: fix bug where any program name was "matching"Denis Vlasenko
processes for which readlink(/proc/N/exe) fails
2006-11-18rodata cleanup. "unable to" == "cannot". -300 bytesDenis Vlasenko
2006-11-18small fixes: using fd-based io instead of FILE*-based,Denis Vlasenko
missed O_TRUNC, etc
2006-10-08start_stop_daemon: add -N <nice> compatDenis Vlasenko
[re]nice: add support for -nNNN w/o spaces, -NNN (nice only), simplified code
2006-10-08attempt to regularize atoi mess.Denis Vlasenko
2006-10-03getopt_ulflags -> getopt32.Denis Vlasenko
It is impossible to formulate sane ABI based on size of ulong because it can be 32-bit or 64-bit. Basically it means that you cannot portably use more that 32 option chars in one call anyway... Make it explicit.
2006-09-17whitespace cleanupDenis Vlasenko
2006-09-04Patch from Natanael Copa to make start-stop-daemon just use readlink andRob Landley
strcmp to check if a program is already running.
2006-08-28Bugfix from Jason Schoon: send the right signal with -s.Rob Landley
2006-08-03Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley
things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
2006-07-17Patch from Thaddeus Ternes, adding chuid to start-stop-daemon.Rob Landley
2006-06-12- fix stupid typo from last checkinBernhard Reutner-Fischer
2006-06-11- add fancy mode to start-stop-daemon to support --oknodo and --verboseBernhard Reutner-Fischer
2006-06-02- move #include busybox.h to the very top so we pull in the configBernhard Reutner-Fischer
and eventual platform specific includes in early.
2006-05-26- add central knob to turn off getopt_long everywhere. EXPERIMENTAL!Bernhard Reutner-Fischer
Adds "Enable getopt long" under "General options", default y. Send patches to fix getopt_ulflags and run_parts.c if you turn this off.. See http://busybox.net/lists/busybox/2006-May/021828.html for a start to run-parts
2006-04-12- patch from Denis Vlasenko to add and use bb_xdaemon()Bernhard Reutner-Fischer
2006-04-12- add and use bb_opendir(), bb_xopendir().Bernhard Reutner-Fischer
text data bss dec hex filename 889445 9392 1035784 1934621 1d851d busybox.gcc-4.2.orig 889297 9392 1035784 1934473 1d8489 busybox.gcc-4.2 889009 9820 1037860 1936689 1d8d31 busybox.gcc-4.1.orig 888817 9820 1037860 1936497 1d8c71 busybox.gcc-4.1
2006-03-13Patch from Denis Vlasenko to add xstat() and use it.Rob Landley
2006-01-25just whitespaceTim Riker
2005-10-14- new bb_opt_complementally syntax, use [-:?] only - 'free' chars"Vladimir N. Oleynik"
- new bb_getopt_ulflags features: check max and min args, convert first argv to options special for ar and tar applets - use bb_default_error_retval for env applet
2005-10-11- use complementally '!' to '?' - 'ask' is best 'free' char for this."Vladimir N. Oleynik"
- more long opt compatibility, can set flag for long opt struct now - more logic: check opt-depend requires and global requires, special for 'id' and 'start-stop-daemon' applets.
2005-09-20- rename libbb's password helpers as suggested in libbb.hBernhard Reutner-Fischer
my_getpwnam -> bb_xgetpwnam /* dies on error */ my_getgrnam -> bb_xgetgrnam /* dies on error */ my_getgrgid -> bb_getgrgid my_getpwuid -> bb_getpwuid my_getug -> bb_getug
2005-09-11Cleanup patch by Bernhard Fischer, removing unnecessary includes ofRob Landley
getopt.h, whitespace changes, typos, etc.
2005-09-051) bb_opt_complementaly -> bb_opt_complementally"Vladimir N. Oleynik"
2) better support long options 3) new flag '!' for bb_opt_complementally: produce bb_show_usage() if BB_GETOPT_ERROR internally
2005-07-29commiting fix from:Paul Fox
0000353: [PATCH] start-stop-daemon -q is not quiet
2005-05-11change the hardcoded error constant (0x80000000UL) to a nice flexible define ↵Mike Frysinger
(BB_GETOPT_ERROR)
2004-04-13Fix several problems with start-stop-daemon, add -m supportEric Andersen
2004-03-13Update docs for start_stop_daemon to match reality. UpdateEric Andersen
the reality a bit to better match debian behavior.
2004-01-23Correct check for only one of K or S optionsGlenn L McGrath
2004-01-22Check one and only one of start, stop are given.Glenn L McGrath
Remove some global variables. #define some getopt values.
2003-07-30Do not require that the signal number be specifiedEric Andersen
2003-07-26cleanup and add long optionsEric Andersen
2003-03-19Major coreutils update.Manuel Novoa III
2002-07-03Scrub pwd.h and grp.h handling so we don't have to play anyEric Andersen
silly games. -Erik
2002-06-05plug fd leak noticed by Russ DillEric Andersen
-Erik
2002-06-04Fix for broken handling off BusyBox's own pwd/grp implementationsRobert Griebl
[Parts of this patch may overlap with my other two patches]
2002-01-26Patch from Russ Dill <Russ.Dill@asu.edu>. From theEric Andersen
start-stop-daemon man page: -b|--background Typically used with programs that don't detach on their own. This option will force start-stop-daemon to fork before starting the process, and force it into the background. WARNING: start-stop-daemon cannot check the exit status if the process fails to execute for any reason. This is a last resort, and is only meant for programs that either make no sense forking on their own, or where it's not feasible to add the code for it to do this itself. This is usefull for applets like watchdog
2001-10-31patch from vodz:Eric Andersen
I reduce 148 bytes from start_stop_daemon.c code. Also reduced memory allocated.
2001-10-24Fixup the location of pwd.h and grp.hEric Andersen
2001-10-18Commit the start-stop-daemon applet. This was contributed by DavidEric Andersen
Kimdon <dwhedon@gordian.com> on october 7th -- the day I was fired from Lineo. So it seems I totally forgot about this patch until now. Sorry about that David!