Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 146073 Details for
Bug 219972
Review Request: poker-network - A poker server, client and abstract user interface library
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
updated init file
poker-server.init (text/plain), 2.66 KB, created by
Wart
on 2007-01-21 04:54:15 UTC
(
hide
)
Description:
updated init file
Filename:
MIME Type:
Creator:
Wart
Created:
2007-01-21 04:54:15 UTC
Size:
2.66 KB
patch
obsolete
>#!/bin/sh ># ># poker-server poker-network server ># ># chkconfig: - 65 35 ># description: Multi player online poker server with \ ># bots running according to /etc/poker-network ># processname: pokerserver ># config: /etc/poker-network/poker.server.xml ># pidfile: /var/run/poker-server.pid > ># Source function library. >. /etc/rc.d/init.d/functions > ># Source networking configuration. >. /etc/sysconfig/network > ># Check that networking is up. >[ "$NETWORKING" = "no" ] && exit 0 > >python=/usr/bin/python >twistd=/usr/bin/twistd >reactor=poll > >opt_args=--no_save > >exec="PYTHON_SITELIB/pokernetwork/pokerserver.py" >prog=poker-server > >pidfile=/var/run/$prog.pid >logfile=/var/log/$prog.log > >botpidfile=/var/run/poker-bot.pid > >[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog > >lockfile=/var/lock/subsys/$prog > ># Possible return values: ># 0 = service is running ># 1 = pid file exists, but process is dead ># 2 = pid file gone, process is gone, but lockfile exists ># 3 = service not running >isrunning() { > local base=${1##*/} > local pid > > if [ -f %{pidfile} ] ; then > read pid < %{pidfile} > ps $pid | grep $base 2>&1 > /dev/null > running=$? > if [ "$running" = 0 ] ; then > return 0 > fi > > if [ -n "$pid" ]; then > return 1 > fi > fi > if [ -f ${lockfile} ]; then > return 2 > fi > > return 3 >} > >start() { > echo -n $"Starting $prog: " > isrunning > retval=$? > case $retval in > 0) echo -n $"$prog already running" > failure > echo > return 1 > ;; > 1) echo -n "$prog stopped but pid file exists..." > ;; > 2) echo -n "$prog stopped but subsys locked..." > ;; > esac > > ${python} ${twistd} \ > --pidfile=${pidfile} --python ${exec} \ > --logfile=${logfile} --quiet ${opt_args} \ > --reactor=${reactor} > > retval=$? > if [ $retval -eq 0 ]; then > success > touch $lockfile > else > failure > fi > echo > > return $retval >} > >stop() { > echo -n $"Stopping $prog: " > if [ -f ${botpidfile} ]; then > echo -n $"Shut down poker-bot first!" > failure > echo > return 1 > fi > killproc -p ${pidfile} $prog > retval=$? > echo > [ $retval -eq 0 ] && rm -f $lockfile > return $retval >} > >restart() { > stop > start >} > >reload() { > restart >} > >force_reload() { > restart >} > >fdr_status() { > status $prog >} > >case "$1" in > start|stop|restart|reload) > $1 > ;; > force-reload) > force_reload > ;; > status) > fdr_status > ;; > condrestart|try-restart) > [ ! -f $lockfile ] || restart > ;; > *) > echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}" > exit 2 >esac
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 219972
:
146068
| 146073 |
146095
|
146755
|
148298