ALT Linux Bugzilla
– Attachment 1703 Details for
Bug 10407
ugly initscript
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
init.d/nfs
nfs.init (text/plain), 1.84 KB, created by
Nick S. Grechukh
on 2006-12-12 18:20:08 MSK
(
hide
)
Description:
init.d/nfs
Filename:
MIME Type:
Creator:
Nick S. Grechukh
Created:
2006-12-12 18:20:08 MSK
Size:
1.84 KB
patch
obsolete
>#!/bin/sh ># ># nfs This shell script takes care of starting and stopping ># the NFS services. ># ># chkconfig: 234 60 20 ># description: NFS is a popular protocol for file sharing across TCP/IP \ ># networks. This service provides NFS server functionality, \ ># which is configured via the /etc/exports file. ># probe: true > >WITHOUT_RC_COMPAT=1 > ># Source function library. >. /etc/init.d/functions > ># Source networking configuration. ># Check that networking is up. >SourceIfNotEmpty /etc/sysconfig/network && [ "$NETWORKING" != no ] || exit > >SourceIfNotEmpty /etc/sysconfig/vserver > >NFSD=/usr/sbin/unfsd >EXPORTFS=/usr/sbin/exportfs >EXPORTS=/etc/exports > >[ -x "$NFSD" ] || exit > >SourceIfNotEmpty /etc/sysconfig/nfs >SourceIfNotEmpty /etc/syscongig/unfs3 > >LOCKFILE=/var/lock/subsys/nfs >PIDFILE=/var/run/nfs.pid > >RETVAL=0 > >start() >{ > # Don't start anything when exports is empty > [ -s "$EXPORTS" ] || return > > # nfsd > start_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" --expect-user root -- $NFSD -i $PIDFILE $UNFS_OPTS > RETVAL=$? > return $RETVAL >} > >stop() >{ > stop_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" --expect-user root -- $NFSD > RETVAL=$? > return $RETVAL >} > >restart() >{ > stop > start >} > >reload() >{ > echo -n "Reexporting NFS file systems: " > stop_daemon --pidfile "$PIDFILE" --expect-user root -HUP $NFSD > RETVAL=$? > return $RETVAL >} > >statuses() >{ > status --lockfile "$LOCKFILE" --pidfile "$PIDFILE" --expect-user root $NFSD > RETVAL=$? >} > ># See how we were called. >case "$1" in > start) > start > ;; > stop) > stop > ;; > restart) > restart > ;; > reload) > reload > ;; > condstop) > if [ -e "$LOCKFILE" ]; then > stop > fi > ;; > condrestart) > if [ -e "$LOCKFILE" ]; then > restart > fi > ;; > status) > statuses > ;; > *) > msg_usage "${0##*/} {start|stop|reload|restart|condstop|condrestart|status}" > RETVAL=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 10407
:
1702
| 1703