1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

systemctl: make --version a little bit more verbose

This commit is contained in:
Lennart Poettering 2010-09-06 03:11:24 +02:00
parent 35df8f27fa
commit 7d568925bd
3 changed files with 5 additions and 1 deletions

View File

@ -262,6 +262,7 @@ if test "z$with_distro" = "z"; then
fi
fi
with_distro=`echo ${with_distro} | tr '[[:upper:]]' '[[:lower:]]' `
AC_DEFINE_UNQUOTED(DISTRIBUTION, ["${with_distro}"], [Target Distribution])
# Default generic names
SPECIAL_SYSLOG_SERVICE=syslog.service

View File

@ -992,7 +992,7 @@ int main(int argc, char *argv[]) {
install_crash_handler();
log_full(arg_running_as == MANAGER_SYSTEM ? LOG_INFO : LOG_DEBUG,
PACKAGE_STRING " running in %s mode. (" SYSTEMD_FEATURES ")", manager_running_as_to_string(arg_running_as));
PACKAGE_STRING " running in %s mode. (" SYSTEMD_FEATURES "; " DISTRIBUTION ")", manager_running_as_to_string(arg_running_as));
if (arg_running_as == MANAGER_SYSTEM && !serialization) {
if (arg_show_status)

View File

@ -52,6 +52,7 @@
#include "shutdownd.h"
#include "exit-status.h"
#include "bus-errors.h"
#include "build.h"
static const char *arg_type = NULL;
static char **arg_property = NULL;
@ -4031,6 +4032,8 @@ static int systemctl_parse_argv(int argc, char *argv[]) {
case ARG_VERSION:
puts(PACKAGE_STRING);
puts(DISTRIBUTION);
puts(SYSTEMD_FEATURES);
return 0;
case 't':