Код: Выделить всё
### BEGIN INIT INFO
Код: Выделить всё
### END INIT INFO
Код: Выделить всё
# Provides: skeleton
Код: Выделить всё
# Provides: q3s1
После этого
Модератор: Bizdelnick
Код: Выделить всё
### BEGIN INIT INFO
Код: Выделить всё
### END INIT INFO
Код: Выделить всё
# Provides: skeleton
Код: Выделить всё
# Provides: q3s1
в консоли вку́пе (с чем-либо) в общем вообще | в течение (часа) новичок нюанс по умолчанию | приемлемо проблема пробовать трафик |
Код: Выделить всё
#! /bin/sh
set -e
### BEGIN INIT INFO
# Provides: q3s1
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Example initscript
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d.
### END INIT INFO
BASEPATH="/root/q3s"
BINARY="ioq3ded"
DAEMON="$BASEPATH/$BINARY"
OPTIONS="+set dedicated 2 +set fs_game excessiveplus +set com_hunkmegs 26 +set net_port 7777 +exec rail.cfg"
RUNAS="root:root"
PIDFILE="$BASEPATH/$BINARY.pid"
test -x $DAEMON || exit 0
export HOME=$BASEPATH
case "$1" in
start)
echo -n "Starting Q3A"
cd $BASEPATH
start-stop-daemon --start --quiet -c $RUNAS --pidfile $PIDFILE \
-N -10 -m -b -d $BASEPATH --exec $DAEMON -- $OPTIONS
echo "."
;;
stop)
echo -n "Stopping Q3A"
start-stop-daemon --stop --quiet --pidfile $PIDFILE \
--exec $DAEMON
echo "."
;;
restart|force-reload)
$0 stop
sleep 3
$0 start
;;
*)
echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0
Код: Выделить всё
root@debian:~# update-rc.d q3s1 enable
update-rc.d: using dependency based boot sequencing
update-rc.d: error: no runlevel symlinks to modify, aborting!
root@debian:~#
Код: Выделить всё
root@debian:~# reboot
Broadcast message from root@debian (pts/2) (Fri Aug 14 16:19:30 2015):
The system is going down for reboot NOW!
root@debian:~#
в консоли вку́пе (с чем-либо) в общем вообще | в течение (часа) новичок нюанс по умолчанию | приемлемо проблема пробовать трафик |
в консоли вку́пе (с чем-либо) в общем вообще | в течение (часа) новичок нюанс по умолчанию | приемлемо проблема пробовать трафик |
Bookkc писал(а): ↑14.08.2015 15:27И так... сделал по этому мануалу http://notes.splitbrain.org/q3aserver
Код: Выделить всё
#! /bin/sh
set -e
BASEPATH="/opt/games/quake3"
Bookkc писал(а): ↑14.08.2015 15:27Код: Выделить всё
#! /bin/sh set -e BASEPATH="/root/q3s" BINARY="ioq3ded"
Bookkc писал(а): ↑14.08.2015 15:44Код: Выделить всё
root@debian:~/q3s# update-rc.d q3s1 enable update-rc.d: using dependency based boot sequencing update-rc.d: error: q3s1 Default-Start contains no runlevels, aborting. root@debian:~/q3s#
Вот такое
Обоже. я же новичок, зачем вы меня грузите какими то заголовками и скелетонами. просто скажите где и что исправить?
Quake III Arena dedicated server for Debian
===========================================
Running the server via the init script
--------------------------------------
The quake3-server init script runs a dedicated server as the user
"Debian-quake3". This is a simple setup suitable for running one server
on a machine; by default it will cycle through the standard
Quake III Arena deathmatch maps.
The Debian-quake3 user's home directory is /var/games/quake3-server, so you
can find Quake III files in the /var/games/quake3-server/.q3a directory.
By default, the init script will use
/usr/share/games/quake3/baseq3/debian_server.cfg, which is a symlink to
/etc/quake3-server/server.cfg. You can edit this file, or put an alternative
configuration in /var/games/quake3-server/.q3a/baseq3 and change
/etc/default/quake3-server to exec that.
Disabling the init script
-------------------------
To disable the init script, use the facilities provided by your init system.
For instance, under sysvinit, use
update-rc.d quake3-server disable
or under systemd, use
ln -s /dev/null /etc/systemd/system/quake3-server.service
Changing the value of the START_DAEMON variable in
/etc/default/quake3-server is deprecated. Please leave it set to
"unless-disabled-by-upgrade".
Код: Выделить всё
root@debian:~# update-rc.d q3s1 defaults
update-rc.d: using dependency based boot sequencing
insserv: warning: script 'S97DbSecuritySpt' missing LSB tags and overrides
insserv: warning: script 'S99selinux' missing LSB tags and overrides
insserv: warning: script 'selinux' missing LSB tags and overrides
insserv: There is a loop between service DbSecuritySpt and mountnfs if started
insserv: loop involving service mountnfs at depth 10
insserv: loop involving service nfs-common at depth 9
insserv: loop involving service anacron at depth 11
insserv: loop involving service mountnfs-bootclean at depth 12
insserv: loop involving service alsa-utils at depth 14
insserv: There is a loop between service DbSecuritySpt and mountall-bootclean if started
insserv: loop involving service mountall-bootclean at depth 9
insserv: loop involving service mountall at depth 8
insserv: There is a loop between service single and mtab if started
insserv: loop involving service mtab at depth 6
insserv: loop involving service checkroot at depth 5
insserv: There is a loop between service single and bootlogd if started
insserv: loop involving service bootlogd at depth 3
insserv: loop involving service mountdevsubfs at depth 2
insserv: There is a loop at service DbSecuritySpt if started
insserv: There is a loop at service single if started
insserv: loop involving service DbSecuritySpt at depth 2
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service selinux and single if started
insserv: loop involving service single at depth 3
insserv: loop involving service selinux at depth 2
insserv: loop involving service rsyslog at depth 1
insserv: loop involving service mountoverflowtmp at depth 11
insserv: loop involving service checkfs at depth 8
insserv: loop involving service hostname at depth 5
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting DbSecuritySpt depends on single and therefore on system facility `$all' which can not be true!
insserv: Starting selinux depends on single and therefore on system facility `$all' which can not be true!
insserv: Max recursions depth 99 reached
insserv: loop involving service bootlogs at depth 1
insserv: loop involving service keymap at depth 5
insserv: There is a loop between service DbSecuritySpt and mountoverflowtmp if started
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
root@debian:~#
Код: Выделить всё
root@debian:~# ls -l /etc/init.d/q3s1
-rwxrwxrwx 1 root root 1253 Авг 14 12:22 /etc/init.d/q3s1
root@debian:~#
в консоли вку́пе (с чем-либо) в общем вообще | в течение (часа) новичок нюанс по умолчанию | приемлемо проблема пробовать трафик |
в консоли вку́пе (с чем-либо) в общем вообще | в течение (часа) новичок нюанс по умолчанию | приемлемо проблема пробовать трафик |
в консоли вку́пе (с чем-либо) в общем вообще | в течение (часа) новичок нюанс по умолчанию | приемлемо проблема пробовать трафик |
Да-да, там чуть выше пример, как Вы "делали по мануалу".
Bookkc писал(а): ↑16.08.2015 12:31Почему такая уверенность что ушло бы минуты? и да, у меня проблема не с сервером кваки3, а с автозапуском скрина вот я и создал тему. Если бы я хотел сделать по другому - сделал бы в итоге запустить скрин не удалось. Мне удобней через скрин всё смотреть, а не через задницу как предлагаете Вы
И да, меня интересовал именно в ручную собранный сервер так что это был не вариант.
Shell
su -c 'screen -d -m -S realm ./home/wow/release/bin/realm.sh' wow
Shell
#!/bin/sh
while true
do
/home/wow/release/bin/drealm
echo "If you want to completely stop the server process now, press Ctrl+C before
the time is up!"
echo "Rebooting in:"
for i in 5 4 3 2 1
do
echo "$i..."
sleep 1
done
echo "Rebooting now!"
done