Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
9d8f39a1
Commit
9d8f39a1
authored
Mar 24, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rc: do not signal init(8) on shutdown invoke
parent
052e38cd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
12 deletions
+2
-12
rc.halt
src/etc/rc.halt
+1
-5
rc.initial.halt
src/etc/rc.initial.halt
+0
-1
rc.initial.reboot
src/etc/rc.initial.reboot
+0
-1
rc.reboot
src/etc/rc.reboot
+1
-5
No files found.
src/etc/rc.halt
View file @
9d8f39a1
...
...
@@ -5,16 +5,12 @@ if ! /usr/bin/lockf -s -t 30 /tmp/config.lock /usr/bin/true; then
exit
-1
fi
sleep
1
/usr/local/etc/rc.backup_rrd
/usr/local/etc/rc.backup_dhcpleases
sleep
1
SHUTDOWN
=
/sbin/shutdown
if
[
-f
/sbin/shutdown.old
]
;
then
SHUTDOWN
=
/sbin/shutdown.old
fi
$
SHUTDOWN
-
p
now
$
{
SHUTDOWN
}
-o
p
now
src/etc/rc.initial.halt
View file @
9d8f39a1
...
...
@@ -38,7 +38,6 @@ echo "This may take a minute, depending on your hardware.\n";
echo
"
\n
Do you want to proceed [y|n]? "
;
if
(
strcasecmp
(
chop
(
fgets
(
$fp
)),
'y'
)
==
0
)
{
echo
"
\n
{
$g
[
'product_name'
]
}
will shutdown and halt system now.
\n
"
;
system_halt
(
true
);
}
...
...
src/etc/rc.initial.reboot
View file @
9d8f39a1
...
...
@@ -39,7 +39,6 @@ echo "This may take a minute, depending on your hardware.\n";
echo
"
\n
Do you want to proceed [y|n]? "
;
if
(
strcasecmp
(
chop
(
fgets
(
$fp
)),
'y'
)
==
0
)
{
echo
"
\n
{
$g
[
'product_name'
]
}
is rebooting now.
\n\n
"
;
system_reboot
(
true
);
}
...
...
src/etc/rc.reboot
View file @
9d8f39a1
...
...
@@ -5,16 +5,12 @@ if ! /usr/bin/lockf -s -t 30 /tmp/config.lock /usr/bin/true; then
exit
1
fi
sleep
1
/usr/local/etc/rc.backup_rrd
/usr/local/etc/rc.backup_dhcpleases
sleep
1
SHUTDOWN
=
/sbin/shutdown
if
[
-f
/sbin/shutdown.old
]
;
then
SHUTDOWN
=
/sbin/shutdown.old
fi
$
SHUTDOWN
-
r
now
$
{
SHUTDOWN
}
-o
r
now
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