Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 559415 Details for
Bug 787366
systemd-sysv hangs starting a legacy init script
Home
New
Search
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.rh92 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
/etc/rc.d/init.d/nstar.d
nstar.d (text/plain), 2.90 KB, created by
Tom Horsley
on 2012-02-04 13:49:25 UTC
(
hide
)
Description:
/etc/rc.d/init.d/nstar.d
Filename:
MIME Type:
Creator:
Tom Horsley
Created:
2012-02-04 13:49:25 UTC
Size:
2.90 KB
patch
obsolete
>#!/bin/sh ># ># nstar This shell script takes care of starting and stopping ># nstar.d. ># ># chkconfig: 345 98 98 ># description: nstar.d is the NightStar Server Daemon, responsible for \ ># starting server portions of NightStar tools on behalf of \ ># a Client GUI executing on another host. ># processname: nstar.d ># config: /etc/nstar.d.conf /etc/nightstar ># pidfile: /var/run/nstar.d.pid or /var/nightstar/nstar.d.pid ># >USAGE="Usage: $0 {start|stop|status|restart}" ; > >BINPATH="/usr/bin/nightstar" > >PATH="/sbin:/usr/sbin:/bin:/usr/bin" ; >export PATH ; > >IsRedHat="" ; >[ -f /etc/redhat-release ] && IsRedHat="y" ; > >if [ "$IsRedHat" = y ] ; then > # Source function library. > Functions="/etc/rc.d/init.d/functions" ; > [ -r $Functions ] && . $Functions ; > > # Source networking configuration. > NetConf="/etc/sysconfig/network" ; > [ -r $NetConf ] && . $NetConf ; > > # Check that networking is up. > [ ${NETWORKING} = "no" ] && exit 0 >else > DISKLESS="${2}" ; >fi > >Subsys="nstar.d" ; > >Exec="${BINPATH}/$Subsys" ; >VarLock="/var/lock/subsys/$Subsys" ; > >[ -f ${Exec} ] || exit 0 > >MsgFrag="NightStar Server Daemon: " ; > >DAEMON=yes > >RETVAL=0 > ># See how we were called. >case "$1" in > start) > shift ; > > # Start daemons. > dopt="" ; > [ "$DAEMON" = yes ] && dopt="-d" ; > > if [ "$IsRedHat" = y ] ; then > echo -n "Starting ${Subsys}: " ; > daemon ${Exec} ${dopt} ; > RETVAL=$? ; > echo ; > [ $RETVAL -eq 0 ] && touch ${VarLock} ; > else > if [ -x ${Exec} ] ; then > echo "\nStarting the NightStar Server Daemon..." > $Exec ${dopt} ; > RETVAL=$? ; > fi > fi > ;; > stop) > # Stop daemons. > if [ "$IsRedHat" = y ] ; then > echo -n "Shutting down ${MsgFrag}" > killproc ${Exec} > RETVAL=$? > echo > [ $RETVAL -eq 0 ] && rm -f ${VarLock} > else > # > # The grep below is looking for nstar.d, but the > # argument is expressed funny to avoid finding itself. > # > echo "\nShutting down NightStar Server Daemon..." > Pid=`ps -fu root | \ > grep ${BINPATH}'/nsta[r][\.][d]' | \ > sed 's/^[^0-9]*\([0-9][0-9]*\).*$/\1/'` > [ -n "$Pid" ] && kill $Pid > RETVAL=$? > fi > ;; > restart|reload) > shift ; > > $0 stop ; > $0 start ; > RETVAL=$? > ;; > status) > if [ "$IsRedHat" = y ] ; then > status ${Subsys} > RETVAL=$? > else > Pid=`ps -fu root | \ > grep ${BINPATH}'/nsta[r][\.][d]' | \ > sed 's/^[^0-9]*\([0-9][0-9]*\).*$/\1/'` > if [ -n "$Pid" ] ; then > echo "${Subsys} (pid ${Pid}) is running..." > RETVAL=0 ; > else > echo "${Subsys} is stopped" > RETVAL=3 > fi > fi > ;; > *) > echo "${USAGE}" ; > exit 1 >esac > >exit $RETVAL
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 Raw
Actions:
View
Attachments on
bug 787366
: 559415