projects
/
pub
/
pl2303-ft232-gpio.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Add initscript, fix shell of serverctl
[pub/pl2303-ft232-gpio.git]
/
etc
/
init.d
/
serverd
1
#!/bin/sh /etc/rc.common
2
# ServerD daemon
3
# Copyright (C) 2015 Andrew 'Necromant' Andrianov
4
5
START
=
10
6
STOP
=
15
7
8
start
() {
9
cd
/
10
exec
>/
dev
/
null
11
exec
2
>/
dev
/
null
12
(
13
trap
""
TERM
14
/
usr
/
bin
/
serverd.lua
15
) &
16
#setsid "/usr/bin/fastbootd $FILE" >/dev/null 2>&1 < /dev/null &
17
# commands to launch application
18
}
19
20
stop
() {
21
killall serverd.lua
22
# commands to kill application
23
}
24
25