Browse Source
Merge pull request #11475 from neheb/hfewfh
smartmontools: convert init script to procd
lilik-openwrt-22.03
Rosen Penev
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
10 additions and
8 deletions
-
utils/smartmontools/Makefile
-
utils/smartmontools/files/smartd.init
|
|
@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/uclibc++.mk |
|
|
|
|
|
|
|
PKG_NAME:=smartmontools |
|
|
|
PKG_VERSION:=7.1 |
|
|
|
PKG_RELEASE:=2 |
|
|
|
PKG_RELEASE:=3 |
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
|
|
|
PKG_SOURCE_URL:=@SF/smartmontools |
|
|
|
|
|
@ -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 |
|
|
|
} |