developer | e5e687d | 2023-08-08 16:05:33 +0800 | [diff] [blame] | 1 | #!/bin/sh /etc/rc.common |
2 | |||||
developer | 8762a19 | 2023-09-04 09:16:22 +0800 | [diff] [blame] | 3 | #the priority of TOPS driver is 51 |
4 | START=52 | ||||
developer | e5e687d | 2023-08-08 16:05:33 +0800 | [diff] [blame] | 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 | } |