summaryrefslogtreecommitdiff
path: root/src/user-sessions.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-04-04 15:33:00 +0200
committerKay Sievers <kay.sievers@vrfy.org>2011-04-04 15:33:00 +0200
commitdb019b8dd206844dcf5fde661256dc71fcc06fef (patch)
tree7972667f2d36652ac2596d3b3038a4a1537c2ca0 /src/user-sessions.c
parentd19c883d509bb0926635a1a9b30c4875dbbbbfab (diff)
change remaining /var/run to /run
Diffstat (limited to 'src/user-sessions.c')
-rw-r--r--src/user-sessions.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/user-sessions.c b/src/user-sessions.c
index d3faad0cd6..4518d953ed 100644
--- a/src/user-sessions.c
+++ b/src/user-sessions.c
@@ -42,8 +42,8 @@ int main(int argc, char*argv[]) {
if (streq(argv[1], "start")) {
int q = 0, r = 0;
- if (unlink("/var/run/nologin") < 0 && errno != ENOENT) {
- log_error("Failed to remove /var/run/nologin file: %m");
+ if (unlink("/run/nologin") < 0 && errno != ENOENT) {
+ log_error("Failed to remove /run/nologin file: %m");
r = -errno;
}
@@ -59,8 +59,8 @@ int main(int argc, char*argv[]) {
int r, q;
char *cgroup_user_tree = NULL;
- if ((r = write_one_line_file("/var/run/nologin", "System is going down.")) < 0)
- log_error("Failed to create /var/run/nologin: %s", strerror(-r));
+ if ((r = write_one_line_file("/run/nologin", "System is going down.")) < 0)
+ log_error("Failed to create /run/nologin: %s", strerror(-r));
if ((q = cg_get_user_path(&cgroup_user_tree)) < 0) {
log_error("Failed to determine use path: %s", strerror(-q));