TrackMania Forever
From Gentoo Linux Wiki
(Redirected from TMF)
| Please format this article according to the Style Guidelines and Wikification suggestions, then remove this notice {{Wikify}} from the article.
Reason(s): This article does not give any indication of its purpose. What is TMF? What is xAseco? Why would someone want to do this? |
[edit] Introduction
This article covers xAseco (xAseco is automatic server control for TrackMania Forever) startup script for Track mania forever. Feel free to use this script and to modify.
[edit] Install
Start new file:
File: /etc/init.d/aseco
nano /etc/init.d/aseco
Copy/ paste following script:
File: /etc/init.d/aseco
#!/sbin/runscript
#Starts aseco script
#description: aseco is the TMN server manager.
opts="start stop restart"
MYPIDF=/var/run/aseco.pid
depend() {
need net
}
start() {
ebegin "Starting Aseco tool"
su -l -c /var/spool/xaseco/Aseco.sh root > $MYPIDF
eend $?
}
stop() {
ebegin "Stopping Aseco tool"
killall "php"
rm -f $MYPIDF
eend $?
}
svc_start() {
ebegin "Starting Aseco tool"
su -l -c /var/spool/xaseco/Aseco.sh root > $MYPIDF
eend $?
}
svc_stop() {
ebegin "Stopping Aseco tool"
killall "php"
rm -f $MYPIDF
eend $?
}
restart() {
svc_stop
sleep 3 # Wait 3 seconds before starting again
svc_start
}
Make file executable with
chmod a+x /etc/init.d/aseco
Start/Stop/restart Aseco with:
/etc/init.d/aseco start
/etc/init.d/aseco stop
/etc/init.d/aseco restart