Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 475330
Collapse All | Expand All

(-)a/iguanaIR.init (-2 / +12 lines)
Lines 71-76 elif [ "$DISTRO" = "gentoo" ]; then Link Here
71
    {
71
    {
72
        eend $*
72
        eend $*
73
    }
73
    }
74
    # there is no pidofproc in gentoo
75
    pidofproc()
76
    {
77
        pidof "$@"
78
    }
74
else
79
else
75
    if [ "$DISTRO" != "debian" -a "$DISTRO" != "ubuntu" ]; then
80
    if [ "$DISTRO" != "debian" -a "$DISTRO" != "ubuntu" ]; then
76
        echo "WARNING: failed to recognize distro, defaulting to Debian."
81
        echo "WARNING: failed to recognize distro, defaulting to Debian."
Lines 96-101 depends() Link Here
96
    RETVAL=0
101
    RETVAL=0
97
}
102
}
98
103
104
depend()
105
{
106
    before lircd
107
}
108
99
start()
109
start()
100
{
110
{
101
    # figure out what command to run to start the daemon
111
    # figure out what command to run to start the daemon
Lines 104-110 start() Link Here
104
            START="daemon --user=iguanair $IGPATH $IGUANAIR_OPTIONS -l $LOGFILE"
114
            START="daemon --user=iguanair $IGPATH $IGUANAIR_OPTIONS -l $LOGFILE"
105
        fi
115
        fi
106
    else
116
    else
107
        START="start-stop-daemon --start --chuid iguanair --group iguanair --exec $IGPATH -- $IGUANAIR_OPTIONS -l $LOGFILE"
117
        START="start-stop-daemon --start --user iguanair --group iguanair --exec $IGPATH -- $IGUANAIR_OPTIONS -l $LOGFILE"
108
    fi
118
    fi
109
119
110
    if [ "$START" != "" ]; then
120
    if [ "$START" != "" ]; then
Lines 138-144 stop() Link Here
138
    if [ "$LOCKFILE" != "" ]; then
148
    if [ "$LOCKFILE" != "" ]; then
139
        killproc $IGPATH
149
        killproc $IGPATH
140
    else
150
    else
141
        start-stop-daemon --stop --oknodo --retry 2 --exec $IGPATH
151
        start-stop-daemon --stop --exec $IGPATH
142
    fi
152
    fi
143
    RETVAL=$?
153
    RETVAL=$?
144
    log_end_msg $RETVAL
154
    log_end_msg $RETVAL

Return to bug 475330