Skip to content

Instantly share code, notes, and snippets.

@thoughtpolice
Created June 29, 2016 22:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thoughtpolice/6c096b6666532893a1354b46f7b64ef9 to your computer and use it in GitHub Desktop.
Save thoughtpolice/6c096b6666532893a1354b46f7b64ef9 to your computer and use it in GitHub Desktop.
BitKeeper systemd service files
[Unit]
Description=BitKeeper Daemon (read-only access)
Documentation=https://www.bitkeeper.org/man/bkd.html
After=network.target
[Service]
ExecStart=/usr/local/bin/bk bkd -D -C -p14690 -xpush -xrclone -xhttpget -xget
User=bk
Group=bk
WorkingDirectory=/srv/repos/bk
PrivateTmp=yes
NoNewPrivileges=yes
PrivateDevices=yes
ProtectSystem=full
ProtectHome=yes
ReadOnlyDirectories=/
ReadWriteDirectories=/srv/repos/bk
[Install]
WantedBy=multi-user.service
Alias=bk-read.service
[Unit]
Description=BitKeeper Daemon (Web browser)
Documentation=https://www.bitkeeper.org/man/bkd.html
After=network.target
[Service]
ExecStart=/usr/local/bin/bk bkd -D -C -p0.0.0.0:8080 -xabort -xcheck -xclone -xpull -xpush -xpwd -xrclone -xrootkey -xstatus -xsynckeys -xversion
User=bk
Group=bk
WorkingDirectory=/srv/repos/bk
PrivateTmp=yes
NoNewPrivileges=yes
PrivateDevices=yes
ProtectSystem=full
ProtectHome=yes
ReadOnlyDirectories=/
ReadWriteDirectories=/srv/repos/bk
[Install]
WantedBy=multi-user.service
Alias=bk-web.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment