smartmontools: convert init script to procd
[feed/packages.git] / utils / smartmontools / files / smartd.init
index f1453f2577da6487e70fc78ef9ddcd4e2b5e2af7..ae849adde6320b560463bd816f73c8390e297033 100644 (file)
@@ -3,14 +3,16 @@
 
 START=95
 
-start() {
-       service_start /usr/sbin/smartd -q never
-}
+USE_PROCD=1
+PROG=/usr/sbin/smartd
 
-stop() {
-       service_stop /usr/sbin/smartd
+start_service() {
+       procd_open_instance
+       procd_set_param command "$PROG"
+       procd_append_param command -n -q never
+       procd_close_instance
 }
 
-reload() {
-       service_reload /usr/sbin/smartd
+reload_service() {
+       procd_send_signal smartd
 }