[Box-Admins] How to restart the ghost box
Tobias Pape
Das.Linux at gmx.de
Tue Jul 26 21:04:39 UTC 2016
Hi all
twitter informed me that source.squeak.org was down.
Turns out all box2 services were gone.
So, here's the procedure how to revive it (put on the server for convenience)
root at squeak-box4:/srv/box2/root# cat HOW_TO_RESTART_BOX_2_SERVICES
# bring up the admin screen
screen -dmS Admin-Screen
# setup chroot
#
mount --rbind /dev /srv/box2/dev
mount --make-rslave /srv/box2/dev
mount -t proc /proc /srv/box2/proc
mount --rbind /sys /srv/box2/sys
mount --make-rslave /srv/box2/sys
mount --rbind /tmp /srv/box2/tmp
# in the admin screen:
chroot /srv/box2
# in the box 2 make it known where we are
export PS1="\e[0;31m\] BOX2 CHROOT \e[m\] $PS1"
# also, do 'CTRL-a A' and set the name to "BOX2 CHROOT"
# then start the usual suspects
#
/etc/init.d/mailman start
/etc/init.d/mysql start
/etc/init.d/apache2 start
/etc/init.d/qmail start
# and don't forget daemontools
#
/usr/bin/svscanboot &
disown -h
disown
HTH
Best regards
-Tobias
More information about the Box-Admins
mailing list