blob: 6c4e612667c45377440ad0eb8c3bad169a2abd08 [file] [log] [blame]
developere5e687d2023-08-08 16:05:33 +08001#!/bin/sh /etc/rc.common
2
3#the priority of TOPS driver is 41
4START=42
5
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}