diff options
Diffstat (limited to 'app-accessibility/espeakup/files')
-rw-r--r-- | app-accessibility/espeakup/files/espeakup.rc | 24 |
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 +} |