Using the SmartServer of v0.15 with xinetd

Thomas Ackermann tja at tja-server.de
Thu Apr 12 17:23:36 BST 2007


John Arbash Meinel schrieb:
> You might consider writing a bash wrapper script like:
>
> bzr_as_bzruser.sh:
>
> #!/bin/sh
> su - bzruser -c "bzr "$*""
>   

Oh John :)

You made my day :)

localhost:/etc/xinetd.d # cat bzr
service bzr
{
        server_args     = serve --inet --directory=/home/archive/bzr
        log_on_success  += DURATION USERID
        log_on_failure  += USERID
        nice            = 10
        disable         = no
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = root
        server          = /usr/local/bin/run_bzr.sh
        port            = 22618
}
localhost:/etc/xinetd.d # cat /usr/local/bin/run_bzr.sh
#! /bin/bash

su - bzruser -c "/usr/local/bin/bzr $*"
localhost:/etc/xinetd.d # bzr log bzr://localhost:22618
------------------------------------------------------------
revno: 2
committer: bzruser <bzruser at localhost>
branch nick: bzr
timestamp: Thu 2007-04-12 16:57:50 +0200
message:
  Removed .viminfo
------------------------------------------------------------
revno: 1
committer: bzruser <bzruser at localhost>
branch nick: bzr
timestamp: Thu 2007-04-12 16:57:10 +0200
message:
  Just starting



I think, this should go into the FAQ!

:)





More information about the bazaar mailing list