Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
halevt & desktop environment (xfce)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
DMoL
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2006
Posts: 100
Location: Minsk, Belarus

PostPosted: Fri Jun 12, 2009 8:54 pm    Post subject: halevt & desktop environment (xfce) Reply with quote

I use nice program halevt to mount my usb sticks. It startup on new xfce-session, i.e. halevt exists in autostarted applications. But when I do logout, halevt process remains. As the result, after N login/logout cycles there is N halevt processes. Methinks it is a bit wrong. How to solve the issue? Is there something like .xsession-logout where it would be possible to put on something like
Code:
killall halevt
(not very elegant solution, but acceptable in case of mine)?
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Fri Jun 12, 2009 9:01 pm    Post subject: Reply with quote

I haven't used halevt personally, but in my understanding, if it's a daemon on top of hal/ivman, it should be possible to run it *once* when the system starts up (for example as a system service). That way you can forget about it.
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Fri Jun 12, 2009 11:22 pm    Post subject: Reply with quote

Alternatively, you can start halevt if there is no halevt already running like this:
Code:
pgrep halevt >& /dev/null || halevt &

_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Back to top
View user's profile Send private message
p-static
n00b
n00b


Joined: 10 Oct 2004
Posts: 55

PostPosted: Thu Jul 02, 2009 7:57 am    Post subject: Reply with quote

You should be starting it using the init script:

Code:
/etc/init.d/halevt start


You only need to do this once, it's unaffected by logouts.

To set it so that it comes up when your computer starts, do this:

Code:
rc-update add halevt default
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Thu Jul 02, 2009 1:59 pm    Post subject: Reply with quote

p-static wrote:
You should be starting it using the init script:

Code:
/etc/init.d/halevt start


You only need to do this once, it's unaffected by logouts.

To set it so that it comes up when your computer starts, do this:

Code:
rc-update add halevt default
Sometimes you want it to start as the user and not as root. In those cases, you wouldn't want it to run as an init script.
_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum