All of lore.kernel.org
 help / color / mirror / Atom feed
* Add mountpoints to mastermap dynamically.
@ 2008-04-28 14:17 Stef Bon
  2008-04-28 14:36 ` Jeff Moyer
  2008-04-28 15:36 ` Ian Kent
  0 siblings, 2 replies; 4+ messages in thread
From: Stef Bon @ 2008-04-28 14:17 UTC (permalink / raw)
  To: autofs

Hello,

again a question.

The construction I'm working on does add a mountpoint dynamically to an 
existing map.
After added (first some checking the mountpoint is not already included) 
a reload is
done with the running automount (HUP signal). The same after removing a 
mountpoint.

It works very good, but I'm wondering, is this the way to do this??
Isn't there a autofsctl program???

Stef Bon

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Add mountpoints to mastermap dynamically.
  2008-04-28 14:17 Add mountpoints to mastermap dynamically Stef Bon
@ 2008-04-28 14:36 ` Jeff Moyer
  2008-04-28 15:39   ` Stef Bon
  2008-04-28 15:36 ` Ian Kent
  1 sibling, 1 reply; 4+ messages in thread
From: Jeff Moyer @ 2008-04-28 14:36 UTC (permalink / raw)
  To: Stef Bon; +Cc: autofs

Stef Bon <stef@bononline.nl> writes:

> Hello,
>
> again a question.
>
> The construction I'm working on does add a mountpoint dynamically to an 
> existing map.

The subject says you're adding a new entry to the master map.  This
sentence sounds like you're adding an entry to an existing map.  The
second should be caught automatically by the daemon, so no need to
reload.

> After added (first some checking the mountpoint is not already included) 
> a reload is
> done with the running automount (HUP signal). The same after removing a 
> mountpoint.
>
> It works very good, but I'm wondering, is this the way to do this??
> Isn't there a autofsctl program???

You could do, 'service autofs reload' instead.  Or maybe you should
investigate direct maps.  I'm not sure, since I know very little of your
setup.

Cheers,
Jeff

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Add mountpoints to mastermap dynamically.
  2008-04-28 14:17 Add mountpoints to mastermap dynamically Stef Bon
  2008-04-28 14:36 ` Jeff Moyer
@ 2008-04-28 15:36 ` Ian Kent
  1 sibling, 0 replies; 4+ messages in thread
From: Ian Kent @ 2008-04-28 15:36 UTC (permalink / raw)
  To: Stef Bon; +Cc: autofs


On Mon, 2008-04-28 at 16:17 +0200, Stef Bon wrote:
> Hello,
> 
> again a question.
> 
> The construction I'm working on does add a mountpoint dynamically to an 
> existing map.
> After added (first some checking the mountpoint is not already included) 
> a reload is
> done with the running automount (HUP signal). The same after removing a 
> mountpoint.
> 
> It works very good, but I'm wondering, is this the way to do this??
> Isn't there a autofsctl program???

Not yet.
I have plans of building on the dynamic log level implementation that
Jeff has done, but were still bug chasing so it's not a high priority.

Ian

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Add mountpoints to mastermap dynamically.
  2008-04-28 14:36 ` Jeff Moyer
@ 2008-04-28 15:39   ` Stef Bon
  0 siblings, 0 replies; 4+ messages in thread
From: Stef Bon @ 2008-04-28 15:39 UTC (permalink / raw)
  To: Jeff Moyer; +Cc: autofs

Jeff Moyer wrote:
> Stef Bon <stef@bononline.nl> writes:
>
>   
>> Hello,
>>
>> again a question.
>>
>> The construction I'm working on does add a mountpoint dynamically to an 
>> existing map.
>>     
>
> The subject says you're adding a new entry to the master map.  This
> sentence sounds like you're adding an entry to an existing map.  The
> second should be caught automatically by the daemon, so no need to
> reload.
>   
Ok,

I mean the first: adding a new entry to the master map.
>   
>> After added (first some checking the mountpoint is not already included) 
>> a reload is
>> done with the running automount (HUP signal). The same after removing a 
>> mountpoint.
>>
>> It works very good, but I'm wondering, is this the way to do this??
>> Isn't there a autofsctl program???
>>     
>
> You could do, 'service autofs reload' instead.  Or maybe you should
> investigate direct maps.  I'm not sure, since I know very little of your
> setup.
>   
Yes, but my system does not know a  "service" command. (LFS/BLFS). I 
think this command
service is typical Red Hat isn't it?

I have to give the init script the command "reload" directly:

/etc/rc.d/init.d/autofs reload

It has the same effect.


Stef Bon

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-04-28 15:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-28 14:17 Add mountpoints to mastermap dynamically Stef Bon
2008-04-28 14:36 ` Jeff Moyer
2008-04-28 15:39   ` Stef Bon
2008-04-28 15:36 ` Ian Kent

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.