I would use rc.custom.gz to append to /etc/services, but it should work to
use the rebuild.  I don't use amanda so I'm not sure exactly what it is
trying to do.  -Tom

On Fri, 24 Aug 2001, John W. Price wrote:

> Date: Fri, 24 Aug 2001 15:47:22 -0700
> From: John W. Price <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [tomsrtbt] how are services set up?
>
> Hi all:
>
> How exactly can I add a service?  I am using amanda to to my backups,
> and for the basic recovery program (amrecover) to work, it needs to have
> two services in the /etc/services file.  I have tried simply adding the
> two services to /etc/services, and rebuilding the disk, but it doesn't
> seem to work.
>
> For reference, the two lines I have added at the end of /etc/services
> are:
>
> amandaidx  10082/tcp
> amidxtape  10083/tcp
>
> Additionally, I have added another line,
>
> amanda     10080/udp
>
> but I'm not certain whether that line is required for recovery purposes.
>
> The symptom I'm seeing that leads me to believe that the services are
> not actually being created is that when I try to connect to the backup
> server (from which I will restore the backup), it comes back with the
> error message:
>
> amandaidx/tcp: unknown protocol
>
> Now, here is the section in the (amanda) source code that generates this
> error, on the off chance that someone will find it useful:
>
>     service_name = stralloc2("amandaidx", SERVICE_SUFFIX);
>
>     printf("AMRECOVER Version %s. Contacting server on %s ...\n",
>            version(), server_name);
>     if ((sp = getservbyname(service_name, "tcp")) == NULL)
>     {
>         error("%s/tcp unknown protocol", service_name);
>     }
>
>
> Is there a way to make this work?
>
> John
>
> --
>            John Price *** **  ** *** [EMAIL PROTECTED]
>            Where there is no solution, there is no problem.
>                -- John G. Price (my father), ca. 1975.

Reply via email to