/[baselayout]/trunk/src/librc-daemon.c
Gentoo

Diff of /trunk/src/librc-daemon.c

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

Revision 2966 Revision 2984
146 return (pids); 146 return (pids);
147} 147}
148librc_hidden_def(rc_find_pids) 148librc_hidden_def(rc_find_pids)
149 149
150#elif defined(__DragonFly__) || defined(__FreeBSD__) || \ 150#elif defined(__DragonFly__) || defined(__FreeBSD__) || \
151 defined(__NetBSD__) || defined(__OpenBSD__) 151 defined(__NetBSD__) || defined(__OpenBSD__)
152 152
153# if defined(__DragonFly__) || defined(__FreeBSD__) 153# if defined(__DragonFly__) || defined(__FreeBSD__)
154# ifndef KERN_PROC_PROC 154# ifndef KERN_PROC_PROC
155# define KERN_PROC_PROC KERN_PROC_ALL 155# define KERN_PROC_PROC KERN_PROC_ALL
156# endif 156# endif
281 free (ffile); 281 free (ffile);
282 282
283 return (m == 111 ? true : false); 283 return (m == 111 ? true : false);
284} 284}
285 285
286void rc_service_daemon_set (const char *service, const char *exec, 286void __rc_service_daemon_set (const char *service, const char *exec,
287 const char *name, const char *pidfile, 287 const char *name, const char *pidfile,
288 bool started) 288 bool started)
289{ 289{
290 char *svc = rc_xstrdup (service); 290 char *svc = rc_xstrdup (service);
291 char *dirpath = rc_strcatpaths (RC_SVCDIR, "daemons", basename (svc), 291 char *dirpath = rc_strcatpaths (RC_SVCDIR, "daemons", basename (svc),
292 (char *) NULL); 292 (char *) NULL);
293 char **files = NULL; 293 char **files = NULL;
366 free (mexec); 366 free (mexec);
367 free (mname); 367 free (mname);
368 free (mpidfile); 368 free (mpidfile);
369 free (dirpath); 369 free (dirpath);
370} 370}
371librc_hidden_def(rc_service_daemon_set) 371librc_hidden_def(__rc_service_daemon_set)
372 372
373bool rc_service_started_daemon (const char *service, const char *exec, 373bool rc_service_started_daemon (const char *service, const char *exec,
374 int indx) 374 int indx)
375{ 375{
376 char *dirpath; 376 char *dirpath;

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

  ViewVC Help
Powered by ViewVC 1.1.20