Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2:ARM
fwnn
rcfcwnn
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File rcfcwnn of Package fwnn
#! /bin/sh # Copyright (c) 1996, 2000 S.u.S.E. GmbH Fuerth, Germany. All rights reserved. # # Author: Mike Fabian <mfabian@suse.de>, 2000 # # /etc/init.d/fcwnn # ### BEGIN INIT INFO # Provides: fcwnn # Required-Start: $network $remote_fs $named # Required-Stop: $network $remote_fs $named # Default-Start: 3 5 # Default-Stop: # Description: Free Wnn (mainland) Chinese Server, for input of simplified Chinese ### END INIT INFO . /etc/rc.status FREE_CWNN_BIN=/usr/bin/cserver test -x $FREE_CWNN_BIN || exit 5 # First reset status of this service rc_reset if [ ! -f /etc/FreeWnn/zh_CN/cserverrc ] ; then echo "can't find /etc/FreeWnn/zh_CN/cserverrc" # program is not configured exit 6 fi case "$1" in start) echo -n "Starting Free Wnn (mainland) Chinese Server" if test -e /tmp/cd_sockV4 ; then rm /tmp/cd_sockV4 fi # redirect message # "startproc: startproc: signal catched /usr/bin/cserver: Terminated # to /dev/null startproc -u wnn -q -t 1 $FREE_CWNN_BIN > /dev/null 2>&1 rc_status -v ;; stop) echo "Shutting down Free Wnn (mainland) Chinese Server" # don't use 'cwnnkill', because this doesn't kill cserver # if there are still clients. killproc -TERM $FREE_CWNN_BIN rc_status -v if test -e /tmp/cd_sockV4 ; then rm /tmp/cd_sockV4 fi ;; try-restart) $0 status >/dev/null && $0 restart rc_status ;; restart) $0 stop $0 start rc_status ;; force-reload) $0 stop && $0 start rc_status ;; reload) rc_failed 3 rc_status -v ;; status) echo -n "Checking for Free Wnn (mainland) Chinese Server: " checkproc $FREE_CWNN_BIN rc_status -v ;; full-status) $0 status rc_status if test -x /usr/bin/cwnnstat ; then /usr/bin/cwnnstat else echo "Full status not available, can't start \`/usr/bin/cwnnstat'" fi ;; *) echo "Usage: $0 {start|stop|try-restart|restart|force-reload|reload|status|full-status}" exit 1 ;; esac rc_exit
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor