|
|
--rcfile=${MTN_CONFDIR}/hooks.lua --log=/var/log/monotone/monotone.log" | --rcfile=${MTN_CONFDIR}/hooks.lua --log=/var/log/monotone/monotone.log" |
#--dump=$ERRORLOG | #--dump=$ERRORLOG |
MTN_PIDFILE="/var/run/monotone/monotone.pid" | MTN_PIDFILE="/var/run/monotone/monotone.pid" |
|
MTN_HOME=`awk -F: -vuid=$MTN_USER -vuser=$MTN_USER '$3 == uid || $1 == user { print $6 }' </etc/passwd` |
| |
dbexists() { | dbexists() { |
# Create the database if it doesn't exist | # Create the database if it doesn't exist |
|
|
} | } |
| |
start() { | start() { |
|
cd $MTN_HOME |
|
|
dbexists | dbexists |
| |
ebegin "Starting monotone server" | ebegin "Starting monotone server" |
|
|
} | } |
| |
import() { | import() { |
|
cd $MTN_HOME |
|
|
dbexists | dbexists |
| |
# Read packets into the database | # Read packets into the database |