From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id yBUSJFykHGSXiwAASxT56A (envelope-from ) for ; Thu, 23 Mar 2023 20:11:24 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id yCwjJFykHGR/bwEA9RJhRA (envelope-from ) for ; Thu, 23 Mar 2023 20:11:24 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2A8869477 for ; Thu, 23 Mar 2023 20:11:24 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pfQKn-0002Gl-3B; Thu, 23 Mar 2023 15:10:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pfQKm-0002Ga-AW for help-guix@gnu.org; Thu, 23 Mar 2023 15:10:48 -0400 Received: from mx1.riseup.net ([198.252.153.129]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pfQKk-0002az-E6 for help-guix@gnu.org; Thu, 23 Mar 2023 15:10:48 -0400 Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4PjFKw2kqMzDqMX; Thu, 23 Mar 2023 19:10:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1679598644; bh=kZUXUe3Buf+bf5/0mLFVTYy/dRq7KR3S6Da8g6CNOjQ=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=NnSYx2gMWKh0CM9YF5i8xZenbX0PLew+b8lHgNE3khxFVgloD2YYn2n1B3lx58wk6 Znwt3nXaP10IEGDeW+Gb78hUJP6H3i4Sph/fbc9IylXAekjyRETEdXAn9Ym4lMXrBW vzcy4QlsJbHYGR6ro8UM1A7NGbANzOJ+n2lVb40s= X-Riseup-User-ID: AE39A1F5B4397F2972981E9F37D99C0284BA26AE27772B4A06EFCE9C3E08A848 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews2.riseup.net (Postfix) with ESMTPSA id 4PjFKv54q1z1y7V; Thu, 23 Mar 2023 19:10:43 +0000 (UTC) References: From: Csepp To: Martin Castillo Cc: help-guix@gnu.org Subject: Re: getting loginctl to work Date: Thu, 23 Mar 2023 20:09:04 +0100 In-reply-to: Message-ID: <87ttybcmhd.fsf@riseup.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=198.252.153.129; envelope-from=raingloom@riseup.net; helo=mx1.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679598684; a=rsa-sha256; cv=none; b=QZi9BAHKSReKNY+jyP/joGVjbEiyHRBk5nWw4QwEynlyFjX0jEx7aLFKSVC/Oe1E4vhT+X EbzpLKnO7oYqB2bFfpRopVn40oF6+GaYi+wbxkTsEGqMwgl4YuWG1POd8Cnpwq+A3MSc1s Qt2gFhS3MvG837fO2FDR63lPH6vnFj5dfh7kEPlY8Z2WDL1jetpIAaMLYQICDKrhmMtjAh XrDSyXFCo3n/8VN5847JUj0Fk/jiq39ZSIYZhi/OrneRidormXV20CgYGyBYmggE9eSk1X ADsfgwDHbSOEfXLq1dSnTM2JpoR5cVmi8rtoEDZK/12PhsLavKB0MSJpykM+Bw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=NnSYx2gM; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679598684; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=V6iShWQHoCGu8rIAOtEjiwNUrzPk8EEaneTrVoaoYu8=; b=P7FFmxHpUfrrkz1v8FI6RlheYWQqsIyMWKj4nCwrCnAiIEg7BOEHy/iOcU72JsYBumA4N4 mNq+iIpiCHzyLkvgOeYdr6pzx9xKHtSpSbB8vrGaatwSg8WTsL6zg84+fpMK8OEmqhfvcY RvNbDXu3VOE+YVm+6g5FeD2aSnVkxSFe1/J7lRiopzTezVF6ImzR8t36AbrICke8jlCzPF qhOPSzThhMzFGx+xt6PoRzTJytMeEOZYpzyW1BVsgPKVkgsgB7YJVKGaQl9LR24lX/sisU DhebXTidUkyoXb7LpjSasexUSvy3bMssu8MubD0xqjTF1KEW5wVq18+6aI9ilA== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=NnSYx2gM; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -6.62 X-Spam-Score: -6.62 X-Migadu-Queue-Id: 2A8869477 X-TUID: WTJk5357+QME Martin Castillo writes: > Hi, > > I have guix system installed and want `loginctl poweroff` to work. I'm > logged in via ssh. The vm is started using > qemu-system-x86_64 -drive media=disk,file=geex-unenc.img,format=raw > -bios /usr/share/ovmf/x64/OVMF.fd -m 2G -smp 3 -nic > user,model=virtio-net-pci,hostfwd=tcp::2223-:22 -enable-kvm > > > Currently loginctl does not work: > $ strace -o loginctl.str loginctl poweroff > returns 1 and prints no errors. > loginctl.str shows some partial error message. I don't know how to get > loginctl or dbus to be more verbose and show me the error. > /var/log/secure does not show anything regarding that error. > > $ loginctl list > SESSION UID USER SEAT TTY > c1 983 gdm seat0 tty7 > > 1 sessions listed. > > > First I tried configuring %base-services plus elogind-service-type, > but it didn't work, so I tried %desktop-services, and it still doesn't > work, but I'm sure it should. My (approximate) configuration.scm is > attached. > > > Martin > > [2. text/x-scheme; configuration.scm]... > > [3. application/vnd.pg.format; loginctl.str]... Could it be that something is holding an inhibit lock on shutdown? I think ssh can do that. It might even be automatic?? Try running elogind-inhibit with no arguments.