summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2008-09-02 04:16:44 +0000
committerWilliam Hubbs <williamh@gentoo.org>2008-09-02 04:16:44 +0000
commit9b360e5dde495e52210c309a54e333f932903136 (patch)
treee8efcab013133f23a5a2a20b971cd207ca843d6d /app-accessibility/espeakup/files
parentStable for HPPA (bug #235926). (diff)
downloadgentoo-2-9b360e5dde495e52210c309a54e333f932903136.tar.gz
gentoo-2-9b360e5dde495e52210c309a54e333f932903136.tar.bz2
gentoo-2-9b360e5dde495e52210c309a54e333f932903136.zip
Initial commit.
(Portage version: 2.2_rc8/cvs/Linux 2.6.26-gentoo-r1 i686)
Diffstat (limited to 'app-accessibility/espeakup/files')
-rw-r--r--app-accessibility/espeakup/files/espeakup.rc24
1 files changed, 24 insertions, 0 deletions
diff --git a/app-accessibility/espeakup/files/espeakup.rc b/app-accessibility/espeakup/files/espeakup.rc
new file mode 100644
index 000000000000..890c1eb289e6
--- /dev/null
+++ b/app-accessibility/espeakup/files/espeakup.rc
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+
+depend() {
+ after modules
+ use alsasound pulseaudio
+}
+
+start() {
+ ebegin "Starting espeakup"
+ start-stop-daemon --start --exec /usr/bin/espeakup
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping espeakup"
+ start-stop-daemon --stop --pidfile /var/run/espeakup.pid
+ eend $?
+}
+
+restart() {
+ svc_stop || exit 1
+ sleep 2
+ svc_start || exit 1
+}