mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
sysutils/nut*: Use poweroff instead of shutdown -h
Poweroff instead of halt when signaling shutdown. PR: 263855 Reported by: clear.screen@orange.fr
This commit is contained in:
parent
a28f05fb2d
commit
3b7f73015c
4 changed files with 24 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
PORTNAME= nut
|
||||
PORTVERSION= ${NUT_COMMIT_DATE}
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= sysutils
|
||||
PKGNAMESUFFIX= -devel
|
||||
# MASTER_SITES= http://www.networkupstools.org/source/${PORTVERSION:R}/
|
||||
|
|
11
sysutils/nut-devel/files/patch-conf_upsmon.conf.sample.in
Normal file
11
sysutils/nut-devel/files/patch-conf_upsmon.conf.sample.in
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- conf/upsmon.conf.sample.in.orig 2022-05-08 06:15:14.873131000 -0700
|
||||
+++ conf/upsmon.conf.sample.in 2022-05-08 06:18:53.643631000 -0700
|
||||
@@ -149,7 +149,7 @@
|
||||
# such as posting a message with 'logger' or 'wall' or 'mailx'. Do be careful
|
||||
# to plug the UPS back into the wall in a timely fashion.
|
||||
|
||||
-SHUTDOWNCMD "/sbin/shutdown -h +0"
|
||||
+SHUTDOWNCMD "/sbin/poweroff"
|
||||
|
||||
# --------------------------------------------------------------------------
|
||||
# NOTIFYCMD <command>
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
PORTNAME= nut
|
||||
PORTVERSION= 2.8.0
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://www.networkupstools.org/source/${PORTVERSION:R}/
|
||||
|
||||
|
|
11
sysutils/nut/files/patch-conf_upsmon.conf.sample.in
Normal file
11
sysutils/nut/files/patch-conf_upsmon.conf.sample.in
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- conf/upsmon.conf.sample.in.orig 2022-05-08 06:14:17.220611000 -0700
|
||||
+++ conf/upsmon.conf.sample.in 2022-05-08 06:16:45.805777000 -0700
|
||||
@@ -149,7 +149,7 @@
|
||||
# such as posting a message with 'logger' or 'wall' or 'mailx'. Do be careful
|
||||
# to plug the UPS back into the wall in a timely fashion.
|
||||
|
||||
-SHUTDOWNCMD "/sbin/shutdown -h +0"
|
||||
+SHUTDOWNCMD "/sbin/poweroff"
|
||||
|
||||
# --------------------------------------------------------------------------
|
||||
# NOTIFYCMD <command>
|
Loading…
Add table
Reference in a new issue