From: Fred T. Hamster Date: Tue, 29 May 2012 01:45:57 +0000 (-0400) Subject: cleanin a bit more. X-Git-Tag: 2.140.90~1334 X-Git-Url: https://feistymeow.org/gitweb/?p=feisty_meow.git;a=commitdiff_plain;h=5797e437fab3357617b26c151a3fbd49e86e171d cleanin a bit more. --- diff --git a/database/configuration/cron/mailman_attribute_fix.crontab b/database/configuration/cron/mailman_attribute_fix.crontab new file mode 100644 index 00000000..4714aad9 --- /dev/null +++ b/database/configuration/cron/mailman_attribute_fix.crontab @@ -0,0 +1,9 @@ + +# m h dom mon dow command + +SHELL=/bin/bash + +# fix the mailman binaries. +23 5 * * * chmod -R 02775 /var/lib/mailman/logs &>/dev/null + + diff --git a/database/configuration/cron/repositories_updater.crontab b/database/configuration/cron/repositories_updater.crontab new file mode 100644 index 00000000..26487e9a --- /dev/null +++ b/database/configuration/cron/repositories_updater.crontab @@ -0,0 +1,12 @@ + +SHELL=/bin/bash + +# m h dom mon dow command + +# update the source code to the latest, every day at 3am or so. +14 3 * * * (cd ~/hoople1 ; cvs update . ; cd ~/hoople2 ; svn update . ; cd ~/yeti ; svn update . ) &>/dev/null + +# this packs up our source code distributions once a day. +32 6 * * * (source $HOME/yeti/scripts/core/profile.sh; bash $HOME/yeti/scripts/archival/pack_yeti.sh ; bash $HOME/yeti/scripts/archival/pack_hoople1.sh ; bash $HOME/yeti/scripts/archival/pack_hoople2.sh) &>$HOME/.tmp/zz_packing_cron.log + + diff --git a/database/configuration/cron/web_group_perm_fix.crontab b/database/configuration/cron/web_group_perm_fix.crontab new file mode 100644 index 00000000..86b645ae --- /dev/null +++ b/database/configuration/cron/web_group_perm_fix.crontab @@ -0,0 +1,9 @@ + +# m h dom mon dow command + +SHELL=/bin/bash + +# fix the web directories for group access. +0 * * * * chmod -R g+w /var/www &>/dev/null + + diff --git a/database/configuration/services/team_city_startup b/database/configuration/services/team_city_startup new file mode 100644 index 00000000..25632168 --- /dev/null +++ b/database/configuration/services/team_city_startup @@ -0,0 +1,65 @@ +#!/bin/bash +# +# team_city_startup by Chris Koeritz +# +# /etc/init.d/team_city_startup +# +#uhhh chkconfig: 2345 01 99 +# description: Starts the Team City Agent as our swbuild user. +# +### BEGIN INIT INFO +# Provides: team_city_startup +# Required-Start: +# Required-Stop: +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: Team City Agent initialization +# Description: team city rc file. This rc script runs the agent as the +# swbuild user. +### END INIT INFO + +usage() { + echo "Usage: $0 {start|stop|status|kill}" +} + +function teamcity_action() +{ + export JAVA_HOME=/usr/lib/jvm/java-6-sun + export HOME=/home/swbuild + + # should become the swbuild user and tell team city the proper action. + su -m -c "/home/swbuild/teamcity_agent/bin/agent.sh $*" swbuild +} + +test -x ${PARSER} || exit 0 # by debian policy + +case "$1" in + start) + teamcity_action start + rc=$? + ;; + stop) + teamcity_action stop + rc=$? + ;; + kill) + teamcity_action stop kill + rc=$? + ;; + status) + procs_found=$(ps wuax | grep teamcity | grep -v grep) + if [ -z "$procs_found" ]; then + echo "Team City Agent is not running." + else + echo "Team City Agent is running." + fi + rc=$? + ;; + *) + usage + exit 1 + ;; + esac +exit $rc + +