diff options
-rw-r--r-- | sysutils/nut/files/nut.sh.sample | 10 | ||||
-rw-r--r-- | sysutils/nut22/files/nut.sh.sample | 10 |
2 files changed, 8 insertions, 12 deletions
diff --git a/sysutils/nut/files/nut.sh.sample b/sysutils/nut/files/nut.sh.sample index 79537db58840..fb2d0cd405b2 100644 --- a/sysutils/nut/files/nut.sh.sample +++ b/sysutils/nut/files/nut.sh.sample @@ -19,21 +19,19 @@ BIN=${PREFIX}/bin SBIN=${PREFIX}/sbin MODELS=${PREFIX}/libexec/nut -UPSTYPE='genericups' -UPSFLAGS='-a backups' - UPSLOG='/var/log/ups.log' UPSLOGINTERVAL='300' case "${1}" in start) - ${MODELS}/${UPSTYPE} ${UPSFLAGS} + ${MODELS}/upsdrvctl start ${SBIN}/upsd ${SBIN}/upsmon localhost ${BIN}/upslog -s backups@localhost -l ${UPSLOG} -i ${UPSLOGINTERVAL} ;; stop) - /usr/bin/killall upslog upsmon upsd ${UPSTYPE} + /usr/bin/killall upslog upsmon upsd + ${MODELS}/upsdrvctl stop ;; restart) $0 stop @@ -46,7 +44,7 @@ esac exit 0 -# Copyright (c) 2003 The FreeBSD Project +# Copyright (c) 2003-2004 The FreeBSD Project # All rights reserved. # # Redistribution and use in source and binary forms, with or without diff --git a/sysutils/nut22/files/nut.sh.sample b/sysutils/nut22/files/nut.sh.sample index 79537db58840..fb2d0cd405b2 100644 --- a/sysutils/nut22/files/nut.sh.sample +++ b/sysutils/nut22/files/nut.sh.sample @@ -19,21 +19,19 @@ BIN=${PREFIX}/bin SBIN=${PREFIX}/sbin MODELS=${PREFIX}/libexec/nut -UPSTYPE='genericups' -UPSFLAGS='-a backups' - UPSLOG='/var/log/ups.log' UPSLOGINTERVAL='300' case "${1}" in start) - ${MODELS}/${UPSTYPE} ${UPSFLAGS} + ${MODELS}/upsdrvctl start ${SBIN}/upsd ${SBIN}/upsmon localhost ${BIN}/upslog -s backups@localhost -l ${UPSLOG} -i ${UPSLOGINTERVAL} ;; stop) - /usr/bin/killall upslog upsmon upsd ${UPSTYPE} + /usr/bin/killall upslog upsmon upsd + ${MODELS}/upsdrvctl stop ;; restart) $0 stop @@ -46,7 +44,7 @@ esac exit 0 -# Copyright (c) 2003 The FreeBSD Project +# Copyright (c) 2003-2004 The FreeBSD Project # All rights reserved. # # Redistribution and use in source and binary forms, with or without |