Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 218212

Summary: net-mail/mailgraph mailgraph: error in initscript (openrc)
Product: Gentoo Linux Reporter: shpokas <ivars.strazdins>
Component: Current packagesAssignee: Net-Mail Packages <net-mail+disabled>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description shpokas 2008-04-18 06:02:23 UTC
yet another broken initscript after upgrade to openrc/baselayout-2

Reproducible: Always

Steps to Reproduce:
1. Update to openrc/baselayout-2
2. /etc/init.d/mailgraph (re)start

Actual Results:  

mail 08:59:56 postfix # /etc/init.d/mailgraph restart
 * Caching service dependencies ...                                                                             [ ok ]
 * Shutting down mailgraph ...                                                                                  [ ok ]
 * Starting mailgraph ...
 * start-stop-daemon: --start needs --exec
/lib/rc/sh/runscript.sh: line 17: --exec: command not found                                                     [ !! ]


Expected Results:  
mailgraph to start.


a quite easy workaround is to add "--name mailgraph \" to start script

                -c "${MG_DAEMON_UID}:${MG_DAEMON_GID}" \
+               --name mailgraph \
                --exec /usr/bin/mailgraph -- -v --daemon \

Dunno if that's a correct way to solve this.
Comment 1 Tobias Scherbaum (RETIRED) gentoo-dev 2008-04-27 18:53:09 UTC
Fixed in CVS.