/[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 2983 Revision 2984
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"
49#include "rc.h" 50#include "rc.h"
50#include "rc-misc.h" 51#include "rc-misc.h"
51#include "strlist.h" 52#include "strlist.h"
52 53
53typedef struct schedulelist 54typedef struct schedulelist
756 757
757 if (pidfile && rc_is_file (pidfile)) 758 if (pidfile && rc_is_file (pidfile))
758 unlink (pidfile); 759 unlink (pidfile);
759 760
760 if (svcname) 761 if (svcname)
761 rc_service_daemon_set (svcname, exec, cmd, pidfile, false); 762 __rc_service_daemon_set (svcname, exec, cmd, pidfile, false);
762 763
763 exit (EXIT_SUCCESS); 764 exit (EXIT_SUCCESS);
764 } 765 }
765 766
766 if (do_stop (exec, cmd, pidfile, uid, 0, true, false, true) > 0) 767 if (do_stop (exec, cmd, pidfile, uid, 0, true, false, true) > 0)
1030 eerrorx ("%s: %s died", applet, exec); 1031 eerrorx ("%s: %s died", applet, exec);
1031 } 1032 }
1032 } 1033 }
1033 1034
1034 if (svcname) 1035 if (svcname)
1035 rc_service_daemon_set (svcname, exec, cmd, pidfile, true); 1036 __rc_service_daemon_set (svcname, exec, cmd, pidfile, true);
1036 1037
1037 exit (EXIT_SUCCESS); 1038 exit (EXIT_SUCCESS);
1038} 1039}

Legend:
Removed from v.2983  
changed lines
  Added in v.2984

  ViewVC Help
Powered by ViewVC 1.1.20