FreeBSD Bugzilla – Attachment 205009 Details for
Bug 238525
sysutils/smartmontools: Add ability to run smartd with arbitrary arguments
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Example of changes to allow arbitrary arguments on smartd launch
file_238525.txt (text/plain), 941 bytes, created by
Christian Baltini
on 2019-06-12 16:56:32 UTC
(
hide
)
Description:
Example of changes to allow arbitrary arguments on smartd launch
Filename:
MIME Type:
Creator:
Christian Baltini
Created:
2019-06-12 16:56:32 UTC
Size:
941 bytes
patch
obsolete
>--- smartd 2018-10-24 13:06:27.887344000 -0700 >+++ mysmartd 2018-11-20 13:34:16.008852000 -0800 >@@ -1,6 +1,6 @@ > #!/bin/sh > >-# $FreeBSD: head/sysutils/smartmontools/files/smartd.in 340872 2014-01-24 00:14:07Z mat $ >+# $FreeBSD: branches/2018Q4/sysutils/smartmontools/files/smartd.in 340872 2014-01-24 00:14:07Z mat $ > # > # PROVIDE: smartd > # REQUIRE: LOGIN >@@ -15,18 +15,19 @@ > > . /etc/rc.subr > >-name=smartd >-rcvar=smartd_enable >+name=mysmartd >+rcvar=mysmartd_enable > > load_rc_config smartd > >-: ${smartd_enable:="NO"} >+: ${mysmartd_enable:="NO"} >+: ${mysmartd_args:=""} > > required_files=${smartd_config:="/usr/local/etc/smartd.conf"} > pidfile=${smartd_pidfile:="/var/run/smartd.pid"} > > command="/usr/local/sbin/smartd" >-command_args="-c ${required_files} -p ${pidfile}" >+command_args="-c ${required_files} -p ${pidfile} ${mysmartd_args}" > > extra_commands="reload report" > reload_cmd="smartd_reload"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 238525
: 205009