OSDN Git Service

smartd: log in stdout, provide cmd_args in [environment].
authormobinmob <mobinmob@disroot.org>
Fri, 19 Feb 2021 21:30:00 +0000 (23:30 +0200)
committermobinmob <mobinmob@disroot.org>
Sat, 20 Mar 2021 16:37:16 +0000 (18:37 +0200)
usr/share/66/service/smartd

index 02a10bb..76455cf 100644 (file)
@@ -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