#!/bin/sh # fcron # Source functions library source /etc/rc.d/init.d/functions log_script_name "$0 $*" PULSE_SERVER="tcp:via:16002" ESPEAKER="via:16001" # See how we were called. case "$1" in start) cmd_run_log_box_warn "PulseAudio sound server start" loadproc pulseaudio ;; stop) cmd_run_log_box_warn "PulseAudio sound server stop" killproc pulseaudio ;; restart) $0 stop sleep 1 $0 start ;; status) statusproc pulseaudio ;; *) echo "Usage: $0 {start|stop|restart|status}" exit ${EXIT_CODE_FAILURE} ;; esac exit $?