blob: 57ec788da9c930501ff814c0673be4b358c0994f [file] [log] [blame]
developere5e687d2023-08-08 16:05:33 +08001#!/bin/sh /etc/rc.common
2
developer8762a192023-09-04 09:16:22 +08003#the priority of TOPS driver is 51
4START=52
developere5e687d2023-08-08 16:05:33 +08005
6USE_PROCD=1
7NAME=tops-tool
8PROG=/usr/sbin/tops-tool
9
10start_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
17stop_service() {
18 service_stop "${PROG}"
19}