Skip to content

Commit

Permalink
mxqd: Allow to be run as non root user
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Oct 27, 2015
1 parent 9c82995 commit d5d0eac
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions mxqd.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,12 +437,7 @@ int server_init(struct mxq_server *server, int argc, char *argv[])
MX_GETOPT_FINISH(optctl, argc, argv);

if (!RUNNING_AS_ROOT) {
#if defined(MXQ_DEVELOPMENT) || defined(RUNASNORMALUSER)
mx_log_notice("Running mxqd as non-root user.");
#else
mx_log_err("Running mxqd as non-root user is not supported at the moment.");
exit(EX_USAGE);
#endif
mx_log_warning("Running mxqd as non-root user.");
}

if (arg_daemonize && arg_nolog) {
Expand Down

0 comments on commit d5d0eac

Please sign in to comment.