OSDN Git Service
(root)
/
avyssos
/
void-66-services.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d2f2b5
)
smartd: log in stdout, provide cmd_args in [environment].
author
mobinmob
<mobinmob@disroot.org>
Fri, 19 Feb 2021 21:30:00 +0000
(23:30 +0200)
committer
mobinmob
<mobinmob@disroot.org>
Sat, 20 Mar 2021 16:37:16 +0000
(18:37 +0200)
usr/share/66/service/smartd
patch
|
blob
|
history
diff --git
a/usr/share/66/service/smartd
b/usr/share/66/service/smartd
index
02a10bb
..
76455cf
100644
(file)
--- a/
usr/share/66/service/smartd
+++ b/
usr/share/66/service/smartd
@@
-1,9
+1,13
@@
[main]
@type = longrun
@description = "SMART Disk Monitoring daemon"
-@version = 0.0.
1
+@version = 0.0.
2
@user = ( root )
-@options = ( log )
[start]
-@execute = ( smartd -n )
+@execute = ( execl-cmdline -s { smartd ${cmd_args} } )
+
+[environment]
+# -d does not fork and sends logs to stdout, -n does not fork
+# for more information, see the man page.
+cmd_args=! -d