Skip to content

Kerberos kpropd on Gentoo

Nothing fancy, but while configuring a Kerberos slave on a Gentoo server, an init script seems to be missing for starting kpropd.

While it seems some have difficulties writing init scripts, here is what I am using:


#!/sbin/runscript

daemon="MIT Kerberos 5 KPROPD"
exec="/usr/sbin/kpropd"

opts="start stop restart"

depend() {
        need net
}

start() {
        ebegin "Starting $daemon"
        start-stop-daemon --start --quiet --exec ${exec} -- -S 1>&2
        eend $? "Error starting $daemon"
}

stop() { 
        ebegin "Stopping $daemon"
        start-stop-daemon --stop --quiet --oknodo --exec ${exec} 1>&2
        eend $? "Error stopping $daemon"
}

restart() {
   svc_stop
   svc_start
}


Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

No comments

Add Comment

Form options