add init script
This commit is contained in:
parent
fa944fb2ba
commit
da446999fd
1 changed files with 13 additions and 0 deletions
13
etc/init.d/etherswitch
Executable file
13
etc/init.d/etherswitch
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=99
|
||||
STOP=99
|
||||
|
||||
start() {
|
||||
|
||||
/usr/bin/etherswitch &> /var/log/etherswitch.log &
|
||||
}
|
||||
|
||||
stop() {
|
||||
kill -15 `cat /var/run/etherswitch.pid`
|
||||
}
|
Loading…
Reference in a new issue