diff options
author | punk <punk@libernaut> | 2021-04-29 16:11:04 +0100 |
---|---|---|
committer | punk <punk@libernaut> | 2021-04-29 16:11:25 +0100 |
commit | 9bef2e2b7ea351b6b1cb490597356677db61ff34 (patch) | |
tree | c36ae24aa3c36f6c19284c7d4da7c25a620bfabf /tools/conf/etc/rc.d/git-daemon | |
parent | 6b5cf63d1987889e272643bf7eeb7725df856d11 (diff) | |
parent | 5e601f7ee14830ef645ee3d3b1bcdce7450a5ce3 (diff) | |
download | doc-9bef2e2b7ea351b6b1cb490597356677db61ff34.tar.gz |
Diffstat (limited to 'tools/conf/etc/rc.d/git-daemon')
-rwxr-xr-x | tools/conf/etc/rc.d/git-daemon | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/tools/conf/etc/rc.d/git-daemon b/tools/conf/etc/rc.d/git-daemon deleted file mode 100755 index fc43cbf..0000000 --- a/tools/conf/etc/rc.d/git-daemon +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/sh - -SSD=/sbin/start-stop-daemon -NAME=git-daemon -PROG=$(git --exec-path)/${NAME} -USER=www -GROUP=gitolite -PIDFILE=/var/run/git-daemon.pid -REPOS=/srv/gitolite/repositories -OPTS="--verbose --reuseaddr --base-path=${REPOS}" - -case $1 in - start) - echo "Starting ${NAME}..." - $SSD --start \ - --pidfile ${PIDFILE} \ - --exec ${PROG} -- ${OPTS} \ - --detach --pid-file=${PIDFILE} \ - --user=${USER} --group=${GROUP} - - ;; - stop) - echo "Stopping ${NAME}..." - $SSD --stop --quiet --name git-daemon \ - --pidfile ${PIDFILE} - ;; - restart) - echo "Restarting ${NAME}..." - $0 stop - $0 start - ;; - status) - $SSD --status --pidfile $PIDFILE - case $? in - 0) echo "$PROG is running with pid $(cat $PIDFILE )" ;; - 3) echo "$PROG is not running" ;; - 4) echo "Unable to determine the program status" ;; - esac - ;; - *) - echo "usage: $0 [start|stop|restart|status]" - ;; -esac |