run swmd and peripheral manager in foreground

This commit is contained in:
Sukru Senli 2015-05-28 10:56:56 +02:00 committed by Martin Schröder
parent 106d60ad73
commit b5d514076d
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@ PROG=/sbin/peripheral_manager
start_service() {
procd_open_instance
procd_set_param command "$PROG"
procd_set_param command "$PROG" -f
procd_close_instance
}

View file

@ -41,7 +41,7 @@ void print_usage(char *prg_name) {
int main(int argc, char **argv)
{
int ch;
int daemonize = 0;
int daemonize = 1;
pid_t pid, sid;
struct uci_context *uci_ctx = NULL;
static struct ubus_context *ubus_ctx = NULL;