1 |
Author: zzam |
2 |
Date: 2008-06-21 12:49:30 +0000 (Sat, 21 Jun 2008) |
3 |
New Revision: 616 |
4 |
|
5 |
Modified: |
6 |
gentoo-vdr-scripts/trunk/ChangeLog |
7 |
gentoo-vdr-scripts/trunk/etc/init.d/vdr |
8 |
Log: |
9 |
Moved clearing of logfile to better place right at start. |
10 |
|
11 |
Modified: gentoo-vdr-scripts/trunk/ChangeLog |
12 |
=================================================================== |
13 |
--- gentoo-vdr-scripts/trunk/ChangeLog 2008-06-21 12:41:31 UTC (rev 615) |
14 |
+++ gentoo-vdr-scripts/trunk/ChangeLog 2008-06-21 12:49:30 UTC (rev 616) |
15 |
@@ -1,6 +1,9 @@ |
16 |
# ChangeLog for gentoo-vdr-scripts |
17 |
# $Id$ |
18 |
|
19 |
+ 21 Jun 2008; Matthias Schwarzott <zzam@g.o> etc/init.d/vdr: |
20 |
+ Moved clearing of logfile to better place right at start. |
21 |
+ |
22 |
21 Jun 2008; Matthias Schwarzott <zzam@g.o> usr/sbin/Makefile, |
23 |
+usr/sbin/vdr-get-header-checksum, usr/share/vdr/inc/plugin-functions.sh: |
24 |
Factored out checksum creation to extra executable. |
25 |
|
26 |
Modified: gentoo-vdr-scripts/trunk/etc/init.d/vdr |
27 |
=================================================================== |
28 |
--- gentoo-vdr-scripts/trunk/etc/init.d/vdr 2008-06-21 12:41:31 UTC (rev 615) |
29 |
+++ gentoo-vdr-scripts/trunk/etc/init.d/vdr 2008-06-21 12:49:30 UTC (rev 616) |
30 |
@@ -42,21 +42,17 @@ |
31 |
local exitcode |
32 |
|
33 |
einfo "Preparing start of vdr:" |
34 |
+ clear_logfile |
35 |
init_params |
36 |
add_daemonctrl_param --start --chdir ~vdr --exec ${VDR_BIN} |
37 |
init_plugin_loader start |
38 |
- clear_logfile |
39 |
- |
40 |
|
41 |
load_addons_prefixed pre-start || return 1 |
42 |
|
43 |
ebegin "Starting ${VDRNAME}" |
44 |
- |
45 |
unset MAIL |
46 |
export LOGNAME=vdr USER=vdr HOME="${vdr_home}" |
47 |
|
48 |
- debug_msg " CMDLINE:" start-stop-daemon "${daemonctrl_opts}" "--" "${vdr_opts}" |
49 |
- |
50 |
local _openvt= openvt_opts= TERM_DEV=/dev/tty${TERMINAL} |
51 |
if [ -n "${TERMINAL}" -a -e "${TERM_DEV}" ]; then |
52 |
[ "${SWITCH_TO_TERMINAL}" = "yes" ] && openvt_opts="-s" |
53 |
@@ -70,6 +66,8 @@ |
54 |
add_param --daemon |
55 |
fi |
56 |
|
57 |
+ debug_msg " CMDLINE: ${_openvt} start-stop-daemon ${daemonctrl_opts} -- ${vdr_opts}" |
58 |
+ |
59 |
eval ${_openvt} start-stop-daemon ${daemonctrl_opts} -- ${vdr_opts} |
60 |
exitcode=$? |
61 |
eend $exitcode "Failed to start vdr." |
62 |
|
63 |
-- |
64 |
gentoo-commits@l.g.o mailing list |