summaryrefslogtreecommitdiffstats
path: root/net/Netopeer2/files/netopeer2-server.init
blob: 6b2c133b30e891e9b955bdfcb7ab450eb158daf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh /etc/rc.common

START=99
STOP=11

USE_PROCD=1
PROG=/bin/netopeer2-server

start_service() {
    procd_open_instance
    procd_set_param command $PROG
    procd_append_param command -d -v 0
    procd_set_param respawn
    procd_close_instance
}

stop_service()
{
    service_stop ${PROG}
    rm /var/run/netopeer2-server.pid
}