BK-SERVICE(1)

๐Ÿ“ฆ version 7.3.3, in alpine 3.24

๐Ÿ’… 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 named bkd; [name] and [bkdargs] are optional per the synopsis.
  • uninstall [โˆ’a] [name] โ€” uninstalls (after stopping) the named bkd; โˆ’a means all installed daemons instead of a name.
  • status [โˆ’a] name โ€” queries the status of a named bkd; โˆ’a means 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 ๐ŸŽ€

  1. โ˜ž 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.
  2. โ˜ž 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 Policies and double click on User Rights Assignments. Find Log on as a service and double click that. Click Add User or Group and add the user. Close that window.
  3. โ˜ž 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. Click Stop to stop the service, then click the Log On tab, change from Local System account to the user, entering the password as well. Click Apply. Click the General tab and then click Start. 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 bkd service does not work when started from a network drive.
  • The bkd service does not work when started from a substโ€™ed drive.
  • bk uninstall may require a reboot in order to completely remove the service.

๐Ÿ‘‘ SEE ALSO ๐Ÿ‘‘

  • bkโ€bkd
  • bkโ€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
  • ๐Ÿ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms