Django (socket access) – init startup script for Gentoo

#!/sbin/runscript                                                     opts="${opts} stop start" depend() {         need net         use dns logger netmount         after ntpd } DJANGO_SITE="serviceMgmt" SITES_PATH=/www/app/web RUNFILES_PATH=$SITES_PATH/run RUN_AS=django PYTHON_EGG_CACHE=/tmp export PYTHON_EGG_CACHE start() {         ebegin "Starting django-fgci"         chmod -R 777 $SITES_PATH         if [ -f $RUNFILES_PATH/$DJANGO_SITE.pid ]; then                 ewarn "Django already running ($RUNFILES_PATH/$DJANGO_SITE.pid)"         else                 start-stop-daemon –start \                 –pidfile $RUNFILES_PATH/$DJANGO_SITE.pid \                 –chuid $RUN_AS \                 –exec /usr/bin/python $SITES_PATH/$DJANGO_SITE/manage.py [...]

Create SW RAID from disks which were in HW …

Create SW RAID from disks which were in HW RAID ARRAY When i built my new server, i got disks from old server. In old server was HW RAID array and the new server doesn’t supports HW RAID. So, i boot sysrescue CD on server and when i built new raid array i saw this [...]