Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 123415 - init-script for beagle-daemon (app-misc/beagle)
Summary: init-script for beagle-daemon (app-misc/beagle)
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Daniel Drake (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-19 14:00 UTC by Sebastian Noack
Modified: 2006-02-28 08:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Noack 2006-02-19 14:00:13 UTC
Hi Guys,

not really a bug, but a contribution from my own. ;)
I've wrote an init-script for the beagle-daemon (contains in the ebuild app-misc/beagle).

/etc/init.d/beagled
------------------------------------------------------------------------------
#!/sbin/runscript
# By Sebastian Noack
# Distributed under the terms of the GNU General Public License v2

depend() {
	need localmount
}

start() {
	ebegin "Starting beagle-daemon."
	su - $USER -c "/usr/bin/beagled $OPTS"
	eend $?
}

stop() {
	ebegin "Stopping beagle-daemon."
	su - $USER -c "/usr/bin/beagle-shutdown"
	eend 0
}
------------------------------------------------------------------------------

/etc/conf.d/beagled
------------------------------------------------------------------------------
# /etc/conf.d/beagled

# User wich beagle should run as. Usually your normal user if it is only one.
USER="user"

# Options wich shuold pass to beagled.
OPTS=""
------------------------------------------------------------------------------

Regards
Sebastian
Comment 1 Daniel Drake (RETIRED) gentoo-dev 2006-02-19 15:05:48 UTC
Hi Sebastian, thanks for the contribution.

I'm not so sure about the idea. When beagle runs outside of X it is unable to deduce the screensaver status or the idle time of the user.

Also, beagle is designed so that multiple users can run it concurrently.

The correct solution would be to modify GNOME to be able to start beagle on login and stop on logout. Fancy looking into that kind of approach?
Comment 2 Daniel Drake (RETIRED) gentoo-dev 2006-02-28 07:59:18 UTC
I'll close this for now.
An approach based on this sounds hopeful: http://blogs.gnome.org/view/rodrigo/2006/02/28/0
Comment 3 Sebastian Noack 2006-02-28 08:17:56 UTC
Hi Daniel,

that what you propose is gnome-related but I and like I guesss many other users use beagle without gnome. And actually you don't have to run any wm to use beagle. If you want I can modify the script so that you can add multiple users to /etc/conf.d/beagled.

Regards
Sebastian