BK-SERVICE(1)
๐ bk service(none) ๐
okay bestie, welcome to the BitKeeper Userโs Manual โ this page is literally the bk service(none) group-chat guide for managing a bkd as a Windows service โจ no cap.
โจ NAME โจ
managing a bkd as a Windows service โ thatโs the whole vibe ๐
โจ SYNOPSIS โจ
bk service install [name] [bkdargs]
bk service uninstall [โa] [name]
bk service status [โa] name
bk service list
๐ DESCRIPTION ๐
okay so the BitKeeper daemon, bkd, is used to synchronize and query repositories. For the full bkd lore, see bk help bkd โ itโs giving essential reading ๐ซถ.
bk service is used to install (and start), uninstall (after stopping), query the status of a named BitKeeper daemon (bkd), or list all installed daemons. The main reason for using this interface is to get a service that will be restarted on each boot. iconic behavior, honestly ๐
subcommand vibe check:
install [name] [bkdargs]โ installs (and starts) a namedbkd;[name]and[bkdargs]are optional per the synopsis.uninstall [โa] [name]โ uninstalls (after stopping) the namedbkd;โameans all installed daemons instead of a name.status [โa] nameโ queries the status of a namedbkd;โameans all installed daemons instead of a name.listโ lists all installed daemons.
๐ฆ MULTIPLE DAEMONS ๐ฆ
yep, it is possible to install more than one BitKeeper daemon โ highkey useful if you want different permissions on different repositories. All daemons must have a name, and the name must be unique across the set of BitKeeper daemons. The default name is โBKDโ. The names are stored in the registry, and we suggest a single word, using mixed case if you want a name like โMyBitkeeperDaemonโ โจ.
Some commands take an optional โa instead of a name which means operate on all installed BitKeeper daemons.
๐ธ PERMISSIONS ๐ธ
By default, an installed service is run as LocalSystem, which is a system user, not the user who installed the service. This can lead to problems if the BKD is used to serve up repositories created by the user with permissions restrictive enough that the LocalSystem user cannot access some or all the files in the repository. not the vibe ๐ญ
There are two ways around this problem: either create all the repositories through the BKD so they are all owned by LocalSystem, or change the service to be run as the user who owns the repositories, described below. periodt.
๐ RUNNING AS A SPECIFIC USER ๐
- โ The user account must have a password. If not, go to
Control Panelโ>User Accounts, select the user, and create a password. Close that window. - โ The user account must be allowed to log on as a service. This is not on by default, so go to
Control Panelโ>Administrative Toolsโ>Local Security Policyโ>Local Policiesand double click onUser Rights Assignments. FindLog on as a serviceand double click that. ClickAdd User or Groupand add the user. Close that window. - โ The service needs to be modified to run as the user. Go to
Control Panelโ>Administrative Toolsโ>Services, find the BitKeeper daemon, doubleโclick it. ClickStopto stop the service, then click theLog Ontab, change fromLocal System accountto the user, entering the password as well. ClickApply. Click theGeneraltab and then clickStart. The daemon will restart as the selected user.
After installing a service it is a good idea to test that it works by trying a clone, pull, and/or changes from a client. bestie, please test it โ itโs giving self-care ๐
๐ญ NOTES ๐ญ
- This interface works only on Windows.
- Environment variables must be explicitly passed on the bkd options list, i.e.,
bk service DOCS โEBK_USER=docs โp8000
- The
bkdservice does not work when started from a network drive. - The
bkdservice does not work when started from a substโed drive. bk uninstallmay require a reboot in order to completely remove the service.
๐ SEE ALSO ๐
bkโbkdbkโHowtoโbkd
๐ CATEGORY ๐
- Repository
- Admin
xoxo bestie ๐ BitKeeper Inc ยท version 1E1 ยท bk service(none) ยท and the date? not listed in the footer, so no invented date here ๐๐ซถโจ
๐ฆ 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