Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
64bab574
Commit
64bab574
authored
Jul 12, 2004
by
Leigh B. Stoller
Browse files
Gotta write that pid file into /var/run ...
parent
a39d0d6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/dhcpd_wrapper.in
View file @
64bab574
...
...
@@ -59,6 +59,15 @@ if (!$debug && TBBackGround($LOGFILE)) {
sleep
(
1
);
exit
(
0
);
}
#
# Write our pid into the pid file so we can be killed later.
#
system
("
echo '
$PID
' >
$PIDFILE
")
==
0
or
die
("
*** $0:
\n
"
.
"
Could not create
$PIDFILE
!
");
# Okay, cleanup function.
$SIG
{
TERM
}
=
\
&Pcleanup
;
# Fully disconnect from bootup.
...
...
@@ -67,7 +76,6 @@ setsid();
# Loop forever, restarting DHCPD if it ever dies.
while
(
1
)
{
$childpid
=
fork
();
$SIG
{
TERM
}
=
'
IGNORE
';
die
("
*** $0:
\n
"
.
"
Could not fork!
\n
")
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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