chiark / gitweb /
logind: add shutdown/suspend/idle inhibition framework
[elogind.git] / src / login / logind-user.c
index 56c7de4400aa90bbfe67a3eeed81bd9ef4534a21..27f78adae1a0e8824f26159fa1a518df9e6ed8e6 100644 (file)
@@ -6,16 +6,16 @@
   Copyright 2011 Lennart Poettering
 
   systemd is free software; you can redistribute it and/or modify it
-  under the terms of the GNU General Public License as published by
-  the Free Software Foundation; either version 2 of the License, or
+  under the terms of the GNU Lesser General Public License as published by
+  the Free Software Foundation; either version 2.1 of the License, or
   (at your option) any later version.
 
   systemd is distributed in the hope that it will be useful, but
   WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  General Public License for more details.
+  Lesser General Public License for more details.
 
-  You should have received a copy of the GNU General Public License
+  You should have received a copy of the GNU Lesser General Public License
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
@@ -25,6 +25,7 @@
 
 #include "logind-user.h"
 #include "util.h"
+#include "mkdir.h"
 #include "cgroup-util.h"
 #include "hashmap.h"
 #include "strv.h"
@@ -299,6 +300,8 @@ static int user_create_cgroup(User *u) {
 static int user_start_service(User *u) {
         assert(u);
 
+        /* FIXME: Fill me in later ... */
+
         return 0;
 }
 
@@ -310,7 +313,7 @@ int user_start(User *u) {
         if (u->started)
                 return 0;
 
-        log_info("New user %s logged in.", u->name);
+        log_debug("New user %s logged in.", u->name);
 
         /* Make XDG_RUNTIME_DIR */
         r = user_mkdir_runtime_path(u);
@@ -425,7 +428,7 @@ int user_stop(User *u) {
         assert(u);
 
         if (u->started)
-                log_info("User %s logged out.", u->name);
+                log_debug("User %s logged out.", u->name);
 
         LIST_FOREACH(sessions_by_user, s, u->sessions) {
                 k = session_stop(s);