X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fdaemon.c;h=f9bf5cef9be8dd35eb48444c6310e21346a533d5;hb=c07c7f5e9e09a4f436ee7f1514cdae759c34b0ba;hp=c0b42bc6730f88581d09d18b4a0de46426b91083;hpb=eb0341e7118a5a63e7a2696e3e59940668355cba;p=sliver-openvswitch.git diff --git a/lib/daemon.c b/lib/daemon.c index c0b42bc67..f9bf5cef9 100644 --- a/lib/daemon.c +++ b/lib/daemon.c @@ -235,3 +235,13 @@ daemonize(void) } } +void +daemon_usage(void) +{ + printf( + "\nDaemon options:\n" + " -D, --detach run in background as daemon\n" + " -P, --pidfile[=FILE] create pidfile (default: %s/%s.pid)\n" + " -f, --force with -P, start even if already running\n", + RUNDIR, program_name); +}