Reply
 
Thread Tools Display Modes
  #1  
Old 02-28-2012, 08:50 PM
bitraptor bitraptor is offline
Junior Member
 
Join Date: Aug 2011
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default PCBSD 9.0: Multiple instances of amountd
On every login a new instance of /usr/local/etc/amount/amountd is launched. Shell script does not terminate when logging out thus after logout/login we end up with multiple instances of the script.
Reply With Quote
  #2  
Old 03-09-2012, 05:54 AM
bitraptor bitraptor is offline
Junior Member
 
Join Date: Aug 2011
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default
The way amountd is started is not that obvious. gdm invokes /usr/local/etc/gdm/Xsession which invokes ~/.xprofile which invokes scripts in /usr/local/share/pcbsd/xstartup.

To fix the issue for me I changed /usr/local/share/pcbsd/xstartup/amountd.sh to
Code:
#!/bin/sh

ps -x | grep -v grep | grep /usr/local/etc/amount/amountd >/dev/null
# if not found - equals to 1, start it
if [ $? -eq 1 ]
then
        (/usr/local/etc/amount/amountd) &
fi
Reply With Quote
  #3  
Old 07-03-2012, 01:25 PM
drulavigne drulavigne is offline
Administrator
 
Join Date: Nov 2009
Posts: 768
Thanks: 13
Thanked 31 Times in 30 Posts
Default
Note that for 9.1, amountd has been replaced by Mount Tray: http://wiki.pcbsd.org/index.php/Mount_Tray.
Reply With Quote
Reply

Tags
amountd

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:10 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.