BK-INITSCRIPTS(1)
π bk initscripts π
okay bestie, welcome to the BitKeeper Userβs Manual page for bk initscripts β literally the sample script for starting the BitKeeper daemon. itβs giving βtiny but mighty init-scriptβ energy, and weβre gonna read every line together. no cap. π«Ά
πΈ NAME πΈ
bk initscripts β sample script for starting the BitKeeper daemon.
β¨ EXAMPLES β¨
okay so hereβs the whole example script, exactly as it appears β comments, copyright, cut-here lines, all of it. do not let the cute vibes make you retype the flags wrong, bestie. π
#!/bin/sh
#
# bitkeeper Start/stop the bitkeeper daemon.
# @(#)bitkeeper.init 1.1 Copyright (c) 2000 Larry McVoy
#
# When starting repositories that are bound
# to a specific port, create a file named
# /var/bitkeeper/repositories. The repositories
# file will contain a line for each repository.
# The line consists of the directory where the
# repository resides and a set of options used
# when started the bk daemon.
#
# For example:
#
# ββββ cut here and remove the leading hash mark and spaces βββββ
# /home/bk/LMbench βp5000 βxcd βxpush βu99
# /home/bk/bitcluster βp6000 βxcd βxpush βu99
# /home/bk/one βp7000 βxcd βxpush βu99
# βββββββββββββββββββββ cut here ββββββββββββββββββββββ
# Source networking configuration.
if [ βf /etc/sysconfig/network ]
then . /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
fi
[ βx /usr/bin/bk ] || exit 0
VAR=/var/bitkeeper
case "$1" in
start_msg) echo "Start BitKeeper daemons"
;;
stop_msg) echo "Stop BitKeeper daemons"
;;
restart) $0 stop
$0 start
;;
start) cd $VAR || exit 1
test βf repositories || {
echo Nothing advertised: Are there any entries in the
echo $VAR/repositories file?
exit 0
}
while read dir opts
do (
cd $dir || exit 1
F=`basename $dir`
bk bkd $opts βl$VAR/log.$F βP$VAR/pid.$F
echo Started bkd $opts in $dir
)
done < repositories
;;
stop)
cd $VAR || exit 1
echo Shutting down BitKeeper daemons
for i in pid.*
do kill βTERM `cat $i`
rm $i
done
;;
status) ps βaxf | grep bkd
;;
*) echo "Usage: bitkeeper {start|stop|restart|status}"
exit 1
;;
esac
exit 0
π·οΈ CATEGORY π·οΈ
- Overview
- Admin
later, bestie π β this page is from BitKeeper Inc, version 1E1, and the footerβs date/page-label slot says bk initscripts(none). thatβs the whole manual-page moment. byeee! π¦
π¦ where this page comes from
- alpine 3.24: bitkeeper-doc 7.3.3-r1 Β· Apache-2.0
- Copyright (c) 1998-2015 BitKeeper Inc
- Copyright (C) 1989, 1990, 1991, 1992, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms