Dolda2000 GitWeb
/
doldaconnect.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c662029
)
Improved Debian init script.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Fri, 10 Oct 2008 00:43:57 +0000
(
02:43
+0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Fri, 10 Oct 2008 00:43:57 +0000
(
02:43
+0200)
contrib/debian-init.d-doldacond
patch
|
blob
|
blame
|
history
diff --git
a/contrib/debian-init.d-doldacond
b/contrib/debian-init.d-doldacond
index
caf7558
..
1492f94
100755
(executable)
--- a/
contrib/debian-init.d-doldacond
+++ b/
contrib/debian-init.d-doldacond
@@
-1,6
+1,12
@@
#!/bin/sh
PATH=/usr/local/bin:/usr/local/sbin:$PATH
#!/bin/sh
PATH=/usr/local/bin:/usr/local/sbin:$PATH
+# Protect auto-files against sudo invocations of the init script
+HOME=/root
+# If you use PAM authentication with pam_krb5 and Kerberos
+# authentication simultaneously, uncomment the following line to
+# avoid segfaults in libcom_err:
+#LD_PRELOAD=/usr/lib/libkrb4.so; export LD_PRELOAD
. /lib/lsb/init-functions
. /lib/lsb/init-functions
@@
-8,6
+14,9
@@
start() {
LANG=en_US.UTF-8
export LANG
log_begin_msg "Starting Dolda Connect daemon..."
LANG=en_US.UTF-8
export LANG
log_begin_msg "Starting Dolda Connect daemon..."
+ log_progress_msg lists
+ rm -f /tmp/dc-filelist-*
+ log_progress_msg daemon
start-stop-daemon -S -p /var/run/doldacond.pid -qx /usr/local/bin/doldacond -- -s -p /var/run/doldacond.pid
log_end_msg $?
}
start-stop-daemon -S -p /var/run/doldacond.pid -qx /usr/local/bin/doldacond -- -s -p /var/run/doldacond.pid
log_end_msg $?
}