找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1400|回复: 0

BF 2 LINUX服务器加入服务脚本

[复制链接]
发表于 2005-7-2 23:11:09 | 显示全部楼层 |阅读模式
If you use SysV-style initscripts (eg. Fedora and Red Hat), you can use my boot scripts:
Rename the initscript to match the username you want to run the server as.
Use "service bf2 start" (replacing "bf2" with the username you created) and "service bf2 stop" to start and stop the server. After testing, use the chkconfig command to make this run at boot and shutdown time.
Check out the scripts' source to see how to combine su and screen to run the server as a detached daemon.

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|=|HERO|=战队

GMT+8, 2024-5-14 16:56

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表