grobian     15/05/06 19:30:43

  Modified:             carbon-c-relay.initd
  Log:
  initd: fix logging
  
  (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 
0x5F75F607C5C74E89)

Revision  Changes    Path
1.2                  app-misc/carbon-c-relay/files/carbon-c-relay.initd

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/carbon-c-relay/files/carbon-c-relay.initd?rev=1.2&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/carbon-c-relay/files/carbon-c-relay.initd?rev=1.2&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/carbon-c-relay/files/carbon-c-relay.initd?r1=1.1&r2=1.2

Index: carbon-c-relay.initd
===================================================================
RCS file: 
/var/cvsroot/gentoo-x86/app-misc/carbon-c-relay/files/carbon-c-relay.initd,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- carbon-c-relay.initd        5 May 2015 14:44:31 -0000       1.1
+++ carbon-c-relay.initd        6 May 2015 19:30:43 -0000       1.2
@@ -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 @@
        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 @@
 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 $?




Reply via email to