- * Copyright (C) 2004, 2005, 2006 Richard Kettlewell
+ * Copyright (C) 2004, 2005, 2006, 2007 Richard Kettlewell
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
{ "log", required_argument, 0, 'l' },
{ "pidfile", required_argument, 0, 'P' },
{ "no-initial-rescan", no_argument, 0, 'N' },
{ "log", required_argument, 0, 'l' },
{ "pidfile", required_argument, 0, 'P' },
{ "no-initial-rescan", no_argument, 0, 'N' },
{ "syslog", no_argument, 0, 's' },
{ 0, 0, 0, 0 }
};
{ "syslog", no_argument, 0, 's' },
{ 0, 0, 0, 0 }
};
/* We fix the path to include the bindir and sbindir we were installed into */
static void fix_path(void) {
char *path = getenv("PATH");
/* We fix the path to include the bindir and sbindir we were installed into */
static void fix_path(void) {
char *path = getenv("PATH");
/* We appear to be a finkized mac; include fink on the path in case the
* tools we need are there. */
byte_xasprintf(&newpath, "PATH=%s:%s:%s:%s",
/* We appear to be a finkized mac; include fink on the path in case the
* tools we need are there. */
byte_xasprintf(&newpath, "PATH=%s:%s:%s:%s",
case 'P': pidfile = optarg; break;
case 'N': initial_rescan = 0; break;
case 's': logsyslog = 1; break;
case 'P': pidfile = optarg; break;
case 'N': initial_rescan = 0; break;
case 's': logsyslog = 1; break;
/* Start the speaker process (as root! - so it can choose its nice value) */
speaker_setup(ev);
/* set server nice value _after_ starting the speaker, so that they
/* Start the speaker process (as root! - so it can choose its nice value) */
speaker_setup(ev);
/* set server nice value _after_ starting the speaker, so that they