[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: packaging help



This is going really well.  Thanks to all those who have shared advice.

How does one go about choosing ports for an application?

Obviously there are well known ports, but is there any doc in debian
that shows what ports have been 'reserved' by other applications?

Thanks,
Whit



On Tue, Apr 24, 2012 at 12:15 PM, Gergely Nagy <algernon@balabit.hu> wrote:
> Whit Armstrong <armstrong.whit@gmail.com> writes:
>
>>> I assume it has a main process, which when stopped, would result in the
>>> workers being killed too. If that is so, I do not think you need to
>>> store the pids of the workers anywhere.
>>
>> Perhaps I'm confusing terminology here.  The main deamon does not
>> spawn the workers.  It and the workers are started by the init.d
>> script.  The workers and the main daemon should be started and stopped
>> together.
>>
>> In that case, it seems like I should store the pid's... so I can kill
>> them upon stop.
>>
>> Have I understood correctly?
>
> Correct.
>
> As a suggestion, I'd store the pidfiles under /run/your-program-name/,
> under names like worker:0.pid, and main.pid or somesuch.
>
> start-stop-daemon can be of great help here, but unfortunately, I don't
> recall any package off the top of my head that would serve as a good
> example, even though I know I've met one or two.. :(
>
> --
> |8]
>
>
> --
> To UNSUBSCRIBE, email to debian-mentors-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: http://lists.debian.org/87aa21umvh.fsf@algernon.balabit
>


Reply to: