Make deprecation warnings for rc and runscript more visible
These warnings were inserted in verbose only mode in OpenRC-0.13.A Now, we are making them more visible in preparation for removing these compatibility binaries in the future.
This commit is contained in:
@ -1174,7 +1174,7 @@ int main(int argc, char **argv)
|
|||||||
usage(EXIT_FAILURE);
|
usage(EXIT_FAILURE);
|
||||||
|
|
||||||
if (runscript)
|
if (runscript)
|
||||||
ewarnv("%s uses runscript, please convert to openrc-run.", service);
|
ewarn("%s uses runscript, please convert to openrc-run.", service);
|
||||||
|
|
||||||
/* Change dir to / to ensure all init scripts don't use stuff in pwd */
|
/* Change dir to / to ensure all init scripts don't use stuff in pwd */
|
||||||
if (chdir("/") == -1)
|
if (chdir("/") == -1)
|
||||||
|
@ -831,7 +831,7 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (strcmp(applet, "rc") == 0)
|
if (strcmp(applet, "rc") == 0)
|
||||||
ewarnv("rc is deprecated, please use openrc instead.");
|
ewarn("rc is deprecated, please use openrc instead.");
|
||||||
newlevel = argv[optind++];
|
newlevel = argv[optind++];
|
||||||
/* To make life easier, we only have the shutdown runlevel as
|
/* To make life easier, we only have the shutdown runlevel as
|
||||||
* nothing really needs to know that we're rebooting.
|
* nothing really needs to know that we're rebooting.
|
||||||
|
Reference in New Issue
Block a user