Opened 15 years ago

Last modified 15 years ago

#98 closed defect

Cron de reboot — at Initial Version

Reported by: Didier Owned by: NiLuJe
Priority: trivial Milestone: Serveur
Component: TODO Version:
Keywords: crontab Cc:

Description

j ai active egalement sudo afin de pouvoir effectuer certaines commandes root sous le compte utilisateur

Le serveur CS reboot tous les jours 08h00 et 16h00

La commande init 3 et pour sortir de l'environnement graphique et reduire l'utilisation CPU

00 16 * * * sudo /sbin/init 6

00 08 * * * sudo /sbin/init 6

05 16 * * * sudo /sbin/init 3

05 08 * * * sudo /sbin/init 3

08 08 * * * sudo /home/didier/hlds/route.sh

08 16 * * * sudo /home/didier/hlds/route.sh

Routesh est un script qui permet de router en priorite les ports ip et udp pour le serveur CS : je gagne a peu pret 5 a 10 ms.

Modif du sudoers: # Host alias specification

# User alias specification

# Cmnd alias specification

# Defaults specification

# Runas alias specification

# User privilege specification root ALL=(ALL) ALL

# Uncomment to allow people in group wheel to run all commands %didier ALL=(ALL) ALL

# Same thing without a password %didi- er ALL=(ALL) NOPASSWD: ALL

# Samples # %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom %users didier=/sbin/shutdown -r now

Route.sh est un script qui permet de router en priorite les ports ip et udp pour le serveur CS : je gagne a peu pret 5 a 10 ms.

#! /bin/sh iptables -A PREROUTING -t mangle -p tcp —dport 27005 -j TOS —set-tos Maximize-Throughput

iptables -A PREROUTING -t mangle -p tcp —dport 27010 -j TOS —set-tos Maximize-Throughput

iptables -A PREROUTING -t mangle -p tcp —dport 27025 -j TOS —set-tos Maximize-Throughput

iptables -A PREROUTING -t mangle -p tcp —sport 27017 -j TOS —set-tos Maximize-Throughput

iptables -A PREROUTING -t mangle -p udp —dport 27005 -j TOS —set-tos Maximize-Throughput

iptables -A PREROUTING -t mangle -p udp —dport 27010 -j TOS —set-tos Maximize-Throughput

iptables -A PREROUTING -t mangle -p udp —dport 27025 -j TOS —set-tos Maximize-Throughput

iptables -A PREROUTING -t mangle -p udp —sport 27017 -j TOS —set-tos Maximize-Throughput

iptables -A PREROUTING -t mangle -p tcp —dport 27005 -j TOS —set-tos Maximize-Throughput

iptables -A PREROUTING -t mangle -p tcp —dport 27010 -j TOS —set-tos Minimize-Delay

iptables -A PREROUTING -t mangle -p tcp —dport 27025 -j TOS —set-tos Minimize-Delay

iptables -A PREROUTING -t mangle -p tcp —sport 27017 -j TOS —set-tos Minimize-Delay

iptables -A PREROUTING -t mangle -p udp —dport 27005 -j TOS —set-tos Minimize-Delay

iptables -A PREROUTING -t mangle -p udp —dport 27010 -j TOS —set-tos Minimize-Delay

iptables -A PREROUTING -t mangle -p udp —dport 27025 -j TOS —set-tos Minimize-Delay

iptables -A PREROUTING -t mangle -p udp —sport 27017 -j TOS —set-tos Minimize-Delay

iptables -A PREROUTING -t mangle -p tcp —sport 27005 -j TOS —set-tos Maximize-Throughput

iptables -A PREROUTING -t mangle -p tcp —sport 27010 -j TOS —set-tos Maximize-Throughput

iptables -A PREROUTING -t mangle -p tcp —sport 27025 -j TOS —set-tos Maximize-Throughput

iptables -A PREROUTING -t mangle -p tcp —dport 27017 -j TOS —set-tos Maximize-Throughput

iptables -A PREROUTING -t mangle -p udp —sport 27005 -j TOS —set-tos Maximize-Throughput

iptables -A PREROUTING -t mangle -p udp —sport 27010 -j TOS —set-tos Maximize-Throughput

iptables -A PREROUTING -t mangle -p udp —sport 27025 -j TOS —set-tos Maximize-Throughput

iptables -A PREROUTING -t mangle -p udp —dport 27017 -j TOS —set-tos Maximize-Throughput

iptables -A PREROUTING -t mangle -p tcp —sport 27005 -j TOS —set-tos Maximize-Throughput

iptables -A PREROUTING -t mangle -p tcp —sport 27010 -j TOS —set-tos Minimize-Delay

iptables -A PREROUTING -t mangle -p tcp —sport 27025 -j TOS —set-tos Minimize-Delay

iptables -A PREROUTING -t mangle -p tcp —dport 27017 -j TOS —set-tos Minimize-Delay

iptables -A PREROUTING -t mangle -p udp —sport 27005 -j TOS —set-tos Minimize-Delay

iptables -A PREROUTING -t mangle -p udp —sport 27010 -j TOS —set-tos Minimize-Delay

iptables -A PREROUTING -t mangle -p udp —sport 27025 -j TOS —set-tos Minimize-Delay

iptables -A PREROUTING -t mangle -p udp —dport 27017 -j TOS —set-tos Minimize-Delay

Change History (0)

Note: See TracTickets for help on using tickets.