vi /etc/init.d/myApp
#!/sbin/openrc-run
pidfile="/run/$RC_SVCNAME.pid"
command="/usr/local/bin/myApp"
depend() {
need net
}
start() {
ebegin "Starting myApp"
start-stop-daemon --start --background \
-#!/sbin/openrc-run
vi /etc/init.d/myApp
#!/sbin/openrc-run
pidfile="/run/$RC_SVCNAME.pid"
command="/usr/local/bin/myApp"
depend() {
need net
}
start() {
ebegin "Starting myApp"
start-stop-daemon --start --background \
-#!/sbin/openrc-run