X-Git-Url: http://git.linex4red.de/pub/pl2303-ft232-gpio.git/blobdiff_plain/685c179520d849e2ffcbeaabe9bccc3ad058adc8..71433d03d9bf61aafb82ed566bd5e00510fc73f7:/etc/init.d/serverd diff --git a/etc/init.d/serverd b/etc/init.d/serverd new file mode 100755 index 0000000..adc541f --- /dev/null +++ b/etc/init.d/serverd @@ -0,0 +1,25 @@ +#!/bin/sh /etc/rc.common +# ServerD daemon +# Copyright (C) 2015 Andrew 'Necromant' Andrianov + +START=10 +STOP=15 + +start() { + cd / + exec >/dev/null + exec 2>/dev/null + ( + trap "" TERM + /usr/bin/serverd.lua + ) & + #setsid "/usr/bin/fastbootd $FILE" >/dev/null 2>&1 < /dev/null & + # commands to launch application +} + +stop() { + killall serverd.lua + # commands to kill application +} + +