View previous topic :: View next topic |
Author |
Message |
DMoL Tux's lil' helper
Joined: 07 May 2006 Posts: 100 Location: Minsk, Belarus
|
Posted: Fri Jun 12, 2009 8:54 pm Post subject: halevt & desktop environment (xfce) |
|
|
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
(not very elegant solution, but acceptable in case of mine)? |
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Fri Jun 12, 2009 9:01 pm Post subject: |
|
|
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 |
|
|
ppurka Advocate
Joined: 26 Dec 2004 Posts: 3256
|
Posted: Fri Jun 12, 2009 11:22 pm Post subject: |
|
|
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 |
|
|
p-static n00b
Joined: 10 Oct 2004 Posts: 55
|
Posted: Thu Jul 02, 2009 7:57 am Post subject: |
|
|
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 |
|
|
ppurka Advocate
Joined: 26 Dec 2004 Posts: 3256
|
Posted: Thu Jul 02, 2009 1:59 pm Post subject: |
|
|
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 |
|
|
|