From 4eb37f67cf1edbece52b5617cb763bbd899ab385 Mon Sep 17 00:00:00 2001 From: Christian Ruppert Date: Sun, 5 Jun 2011 16:49:12 +0200 Subject: Warn if deprecated commandline options are used for start-stop-daemon --- src/rc/start-stop-daemon.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/rc/start-stop-daemon.c b/src/rc/start-stop-daemon.c index 72b8aff0..b5c2b6e7 100644 --- a/src/rc/start-stop-daemon.c +++ b/src/rc/start-stop-daemon.c @@ -791,6 +791,9 @@ start_stop_daemon(int argc, char **argv) case 'u': /* --user | */ case 'c': /* --chuid | */ { + /* DEPRECATED */ + ewarn("WARNING: -c/--chuid is deprecated and will be removed in the future, please use -u/--user instead"); + p = optarg; tmp = strsep(&p, ":"); changeuser = xstrdup(tmp); @@ -867,6 +870,8 @@ start_stop_daemon(int argc, char **argv) break; case 'o': /* --oknodo */ + /* DEPRECATED */ + ewarn("WARNING: -o/--oknodo is deprecated and will be removed in the future"); oknodo = true; break; @@ -887,6 +892,8 @@ start_stop_daemon(int argc, char **argv) break; case 'a': /* --startas */ + /* DEPRECATED */ + ewarn("WARNING: -a/--startas is deprecated and will be removed in the future, please use -x/--exec or -n/--name instead"); startas = optarg; break; case 'w': -- cgit v1.2.3