/[baselayout]/trunk/src/start-stop-daemon.c
Gentoo

Diff of /trunk/src/start-stop-daemon.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2985 Revision 2986
44static struct pam_conv conv = { NULL, NULL} ; 44static struct pam_conv conv = { NULL, NULL} ;
45#endif 45#endif
46 46
47#include "builtins.h" 47#include "builtins.h"
48#include "einfo.h" 48#include "einfo.h"
49#include "librc-daemon.h"
50#include "rc.h" 49#include "rc.h"
51#include "rc-misc.h" 50#include "rc-misc.h"
52#include "strlist.h" 51#include "strlist.h"
53 52
54typedef struct schedulelist 53typedef struct schedulelist
757 756
758 if (pidfile && rc_is_file (pidfile)) 757 if (pidfile && rc_is_file (pidfile))
759 unlink (pidfile); 758 unlink (pidfile);
760 759
761 if (svcname) 760 if (svcname)
762 __rc_service_daemon_set (svcname, exec, cmd, pidfile, false); 761 rc_service_daemon_set (svcname, exec, cmd, pidfile, false);
763 762
764 exit (EXIT_SUCCESS); 763 exit (EXIT_SUCCESS);
765 } 764 }
766 765
767 if (do_stop (exec, cmd, pidfile, uid, 0, true, false, true) > 0) 766 if (do_stop (exec, cmd, pidfile, uid, 0, true, false, true) > 0)
1031 eerrorx ("%s: %s died", applet, exec); 1030 eerrorx ("%s: %s died", applet, exec);
1032 } 1031 }
1033 } 1032 }
1034 1033
1035 if (svcname) 1034 if (svcname)
1036 __rc_service_daemon_set (svcname, exec, cmd, pidfile, true); 1035 rc_service_daemon_set (svcname, exec, cmd, pidfile, true);
1037 1036
1038 exit (EXIT_SUCCESS); 1037 exit (EXIT_SUCCESS);
1039} 1038}

Legend:
Removed from v.2985  
changed lines
  Added in v.2986

  ViewVC Help
Powered by ViewVC 1.1.20