Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
ca8fba0c
Commit
ca8fba0c
authored
Sep 25, 2002
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SFS change I forgot to commit; add stuff for linux subsystem lock file
sillyness.
parent
671aae57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
tmcd/linux/sfs.sh
tmcd/linux/sfs.sh
+15
-0
No files found.
tmcd/linux/sfs.sh
View file @
ca8fba0c
#!/bin/sh
# Source function library.
.
/etc/rc.d/init.d/functions
# Source networking configuration.
if
[
!
-f
/etc/sysconfig/network
]
;
then
exit
0
fi
.
/etc/sysconfig/network
# Check that networking is up.
[
${
NETWORKING
}
=
"no"
]
&&
exit
0
case
"
$1
"
in
start
)
if
[
!
-e
/etc/sfs
]
;
then
...
...
@@ -15,6 +28,7 @@ start)
if
[
-x
/usr/local/sbin/sfssd
]
;
then
/usr/local/sbin/sfssd
&&
echo
-n
' sfssd'
fi
touch
/var/lock/subsys/sfs
;;
stop
)
if
[
-f
/var/run/sfssd.pid
]
;
then
...
...
@@ -23,6 +37,7 @@ stop)
if
[
-f
/var/run/sfscd.pid
]
;
then
kill
`
cat
/var/run/sfscd.pid
`
;
fi
rm
-f
/var/lock/subsys/sfs
;;
*
)
echo
"Usage:
`
basename
$0
`
{start|stop}"
>
&2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment