k3s-openwrt/files/etc/init.d/k3s
Johannes 'fish' Ziemke 291f06df6e Initial commit
2019-03-09 11:48:10 +01:00

17 lines
260 B
Bash
Executable file

#!/bin/sh /etc/rc.common
START=60
STOP=20
PIDFILE=/var/run/k3s.pid
EXEC="/usr/bin/k3s"
start() {
start-stop-daemon -S -b -x "$EXEC" -m -p "$PIDFILE" \
-- server --data-dir $(uci_get k3s.globals.root)
}
stop() {
start-stop-daemon -K -p "$PIDFILE"
}