Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 942545 - net-misc/mrouted bad openrc service file.
Summary: net-misc/mrouted bad openrc service file.
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-30 15:53 UTC by lperkins
Modified: 2024-10-31 19:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lperkins 2024-10-30 15:53:18 UTC
/etc/init.d/mrouted in the latest 4.5 ebuild seems to have some issues such that it fails to start.  It has invalid options for mrouted, and doesn't have the correct options for start-stop-daemon.

Reproducible: Always

Steps to Reproduce:
1.  Install mrouted and try to start it with rc-service.
Actual Results:  
It fails to start.

Expected Results:  
It should start.

I fiddled with it until I got it to work.  I don't know that this is necessarily the best configuration for it, but it actually runs, so it's a definite improvement.


#!/sbin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

depend() {
 use logger
 need net
}

checkconfig() {
 if [ ! -e /etc/mrouted.conf ] ; then
        eerror "You need an /etc/mrouted.conf file to run mrouted"
        return 1
 fi
}

start() {
 checkconfig || return 1
 ebegin "Starting mrouted"
 start-stop-daemon --start --quiet -w 250 -p /var/run/mrouted.pid -x /usr/sbin/mrouted  \
        -- -f /etc/mrouted.conf -p /var/run/mrouted.pid
 eend $?
}

stop() {
 ebegin "Stopping mrouted"
 start-stop-daemon --stop --quiet --pidfile /var/run/mrouted.pid
 eend $?
}