Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 606917 Details for
Bug 851527
SKS initscripts do not work
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patched sks-recon init script
sks-recon.init (text/plain), 2.10 KB, created by
Héctor Acosta
on 2012-08-24 17:04:17 UTC
(
hide
)
Description:
Patched sks-recon init script
Filename:
MIME Type:
Creator:
Héctor Acosta
Created:
2012-08-24 17:04:17 UTC
Size:
2.10 KB
patch
obsolete
>#!/bin/bash ># ># sks-recon This shell script takes care of starting and stopping ># the SKS reconciliation server. ># ># chkconfig: - 89 11 ># description: SKS is the OpenPGP Synchronizing Key Server. ># processname: sks-recon ># config: /etc/sks/sksconf ># config: /etc/sysconfig/sks ># pidfile: /var/run/sks-recon.pid >### BEGIN INIT INFO ># Required-Start: $network sks-db ># Required-Stop: $network >### END INIT INFO > ># Source function library. >. /etc/rc.d/init.d/functions > ># Defines >DESC="the SKS Reconciliation Server" >PROG="sks-recon" >EXEC="/usr/sbin/${PROG}" >LOCK="/var/lock/subsys/${PROG}" >PIDF="/var/run/${PROG}.pid" >STOP_TIMEOUT="10" >BASEDIR="/srv/sks" >HOSTNAME="$(hostname -f)" >DEBUGLEVEL="0" >STAT_HOUR="1" >RUN_AS="sks" >SKS_SHUT="60" >SKS_CMD="$(echo ${PROG} | cut -d'-' -f2)" > ># Include config >if [ -s /etc/sysconfig/sks ]; then > . /etc/sysconfig/sks >fi > > >start() { > local pid= > [ -x "${EXEC}" ] || exit 5 > # Start daemons. > cd "$BASEDIR" > echo -n $"Starting ${DESC}: " > daemon --user=${RUN_AS} ${EXEC} ${SKS_CMD} -debuglevel "$DEBUGLEVEL" -hostname "$HOSTNAME" -basedir "$BASEDIR" -stat_hour "$STAT_HOUR" 2\>/dev/null \& || failure > > pid=`pidof -o %PPID ${PROG}` > RETVAL=${?} > if [ ${RETVAL} -ne 0 ] ; then > failure > else > touch ${LOCK} || failure > echo ${pid} >${PIDF} || failure > success > fi > > echo > return ${RETVAL} >} > >stop() { > echo -n $"Shutting down ${DESC}: " > if [ -f "$PIDF" ]; then > killproc -p "${PIDF}" -d ${STOP_TIMEOUT} $PROG 2\> /dev/null || failure > rm -f ${LOCK} || failure > rm -f ${PIDF} || failure > else > failure $"Stopping $prog" > fi > RETVAL=$? > [ ${RETVAL} -eq 0 ] && rm -f "${PIDF}" > echo >} > >restart() { > stop > sleep 2 > start >} > >force_reload() { > restart >} > >rh_status() { > status ${PROG} >} > >rh_status_q() { > rh_status >/dev/null 2>&1 >} > > ># See how we were called. >case "${1}" in > start) > ${1} > ;; > stop) > ${1} > ;; > restart) > ${1} > ;; > force-reload) > force_reload > ;; > status) > rh_status > ;; > condrestart|try-restart) > rh_status_q || exit 0 > restart > ;; > *) > echo $"Usage: ${PROG} {start|stop|status|restart|try-restart|force-reload}" > exit 2 >esac >exit ${?} > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 851527
:
606861
|
606862
|
606916
| 606917 |
606918