developer | e5e687d | 2023-08-08 16:05:33 +0800 | [diff] [blame] | 1 | #!/bin/sh /etc/rc.common |
2 | |||||
3 | #the priority of TOPS driver is 41 | ||||
4 | START=42 | ||||
5 | |||||
6 | USE_PROCD=1 | ||||
7 | NAME=tops-tool | ||||
8 | PROG=/usr/sbin/tops-tool | ||||
9 | |||||
10 | start_service() { | ||||
11 | procd_open_instance | ||||
12 | procd_set_param command "${PROG}" save_dump /log/tops | ||||
13 | procd_set_param respawn | ||||
14 | procd_close_instance | ||||
15 | } | ||||
16 | |||||
17 | stop_service() { | ||||
18 | service_stop "${PROG}" | ||||
19 | } |