Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 49726 Details for
Bug 79833
america's army server init.d script using screen
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
init.d script
armyops-ded (text/plain), 983 bytes, created by
Fábio Alves
on 2005-01-28 04:54:27 UTC
(
hide
)
Description:
init.d script
Filename:
MIME Type:
Creator:
Fábio Alves
Created:
2005-01-28 04:54:27 UTC
Size:
983 bytes
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2004 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 > >depend() { > need net >} > >start() { > ebegin "Starting Americas Army dedicated server" > screen -A -m -d -S armyops-ded su - games -c "/usr/games/bin/armyops-ded ${aa_OPTS}" > eend $? >} > >stop() { > ebegin "Stopping Americas Army dedicated server" > local pid=`screen -list | grep armyops-ded | awk -F . '{print $1}' | sed -e s/.//` > if [ -z "${pid}" ] ; then > eend 1 "Lost screen session" > else > pid=`pstree -p ${pid} | sed -e 's:^.*server-bin::'` > pid=${pid:1:${#pid}-2} > if [ -z "${pid}" ] ; then > eend 1 "Lost armyops-ded session" > else > kill ${pid} > eend $? "Could not kill armyops-ded" > fi > fi >} > >status() { > screen -list | grep armyops-ded >} >
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 79833
: 49726 |
49727
|
49728