aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ruppert <idl0r@gentoo.org>2011-06-05 16:49:12 +0200
committerChristian Ruppert <idl0r@gentoo.org>2011-06-05 16:49:12 +0200
commit4eb37f67cf1edbece52b5617cb763bbd899ab385 (patch)
treecb130a03a81082bd6686fb02e45618760466add6
parent7ca74d7636b2fcd0c307ec2b972230f25457c786 (diff)
Warn if deprecated commandline options are used for start-stop-daemon
-rw-r--r--src/rc/start-stop-daemon.c7
1 files changed, 7 insertions, 0 deletions
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 <username>|<uid> */
case 'c': /* --chuid <username>|<uid> */
{
+ /* 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 <name> */
+ /* 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':