diff options
author | Fabian Groffen <grobian@gentoo.org> | 2015-05-06 19:30:43 +0000 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2015-05-06 19:30:43 +0000 |
commit | 9fe8bf385b748f1b0728a9722ad2b12c7fe2e587 (patch) | |
tree | ed63cf109c5fa64fcbae05c8d12f1185a6de53a8 /app-misc/carbon-c-relay | |
parent | Version bump, drop old. (diff) | |
download | gentoo-2-9fe8bf385b748f1b0728a9722ad2b12c7fe2e587.tar.gz gentoo-2-9fe8bf385b748f1b0728a9722ad2b12c7fe2e587.tar.bz2 gentoo-2-9fe8bf385b748f1b0728a9722ad2b12c7fe2e587.zip |
initd: fix logging
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0x5F75F607C5C74E89)
Diffstat (limited to 'app-misc/carbon-c-relay')
-rw-r--r-- | app-misc/carbon-c-relay/ChangeLog | 5 | ||||
-rw-r--r-- | app-misc/carbon-c-relay/files/carbon-c-relay.initd | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/app-misc/carbon-c-relay/ChangeLog b/app-misc/carbon-c-relay/ChangeLog index 200f0d62bfdf..81fbd0c12664 100644 --- a/app-misc/carbon-c-relay/ChangeLog +++ b/app-misc/carbon-c-relay/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for app-misc/carbon-c-relay # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/carbon-c-relay/ChangeLog,v 1.4 2015/05/05 14:44:31 grobian Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-misc/carbon-c-relay/ChangeLog,v 1.5 2015/05/06 19:30:43 grobian Exp $ + + 06 May 2015; Fabian Groffen <grobian@gentoo.org> files/carbon-c-relay.initd: + initd: fix logging *carbon-c-relay-0.39-r1 (05 May 2015) diff --git a/app-misc/carbon-c-relay/files/carbon-c-relay.initd b/app-misc/carbon-c-relay/files/carbon-c-relay.initd index d5f2d85579fe..caf7809eed15 100644 --- a/app-misc/carbon-c-relay/files/carbon-c-relay.initd +++ b/app-misc/carbon-c-relay/files/carbon-c-relay.initd @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/carbon-c-relay/files/carbon-c-relay.initd,v 1.1 2015/05/05 14:44:31 grobian Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-misc/carbon-c-relay/files/carbon-c-relay.initd,v 1.2 2015/05/06 19:30:43 grobian Exp $ extra_commands="configtest" extra_started_commands="reload" @@ -27,6 +27,8 @@ start_pre() { if [ "${RC_CMD}" != "restart" ]; then configtest || return 1 fi + touch /var/log/${SVCNAME}.log + chown ${user}:${group} /var/log/${SVCNAME}.log } stop_pre() { @@ -42,7 +44,8 @@ stop_post() { start() { ebegin "Starting ${SVCNAME}" start-stop-daemon --start --background --make-pidfile --pidfile ${pidfile} \ - --stdout /var/log/${SVCNAME}.log --stderr /dev/stdout \ + --stdout /var/log/${SVCNAME}.log \ + --stderr /var/log/${SVCNAME}.log \ --user ${user} --group ${group} \ --exec ${command} -- ${command_args} eend $? |