From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id wNmcKJ8HV2feFgEAe85BDQ:P1 (envelope-from ) for ; Mon, 09 Dec 2024 15:07:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id wNmcKJ8HV2feFgEAe85BDQ (envelope-from ) for ; Mon, 09 Dec 2024 16:07:11 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=h-brs.de header.s=20240830 header.b=VOBpK1Nw; dmarc=fail reason="SPF not aligned (relaxed)" header.from=h-brs.de (policy=none); 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-Seal: i=1; s=key1; d=yhetil.org; t=1733756831; a=rsa-sha256; cv=none; b=mcFL2DrwQOFHLJ7vZRSw0p3CTMZe5TOjufOSxh2xZihpP8f8+Qd0rYrWrOavfL/PvP59MC ZRNPxbtSrRAeTCQld0dSVsOl9jibqwLFUdvG/n0W7hexV/g6hrhcj0FlUSal+ZzjxSML3T lFwg8irRQIOsF1op0DH0M/Nv03OC8DL4dqF2mT+rztE9NuCTQYwkCYsnQuqWOPBIIlKRmg 1LzbIQq087/UV5hoV3cno6XTwT1/qRrwS7iF6cYIXnq5KxopQd7IHdbpwV49DgpvBkFjaX MdSJc2CvjMLrqIKVS7QvGG7Eu9b1FqnWUeTZn9ZU23Pw3YadIJNOQk8WPRxZvw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=h-brs.de header.s=20240830 header.b=VOBpK1Nw; dmarc=fail reason="SPF not aligned (relaxed)" header.from=h-brs.de (policy=none); 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=1733756831; 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=PticjFMrG3EFKVim/UYBkGwLy3S+XFfVORrQRIY5dQs=; b=BsOtP4lb6H+PdGzO015tmFvZGRaVkC62xRVYtyL54Vp0TbTnzd0KKrXNM+dAEX+KDR675c 181PXSDHwyHAtgdYTgzn2uqPyZztGt2Webv+mpZ/rUI1g/k5pEDH8QfdgD8y4gTRS9vG+C xPUsyGE5X9cnmJK/1enDO/cH9czn9Qa0LVToh8mDCmVEXF5s5oAT/gj/BhJwVTvoaWEVsc zNIvhvBPhAi0WPe3ugAZ9VQvyw+rzeO1XWzpttEzQ4spxz1YvxSqNM072Bu9U7pyWNQONA WphQFaO09P+OqERaS5KZWzhZ8MYuAtzn2EfFKwQfbhanLwhvUappskzpDcd03w== 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 7420153609 for ; Mon, 09 Dec 2024 16:07:10 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tKfLV-00042v-5n; Mon, 09 Dec 2024 10:06:49 -0500 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 1tKfLL-00040x-S4 for help-guix@gnu.org; Mon, 09 Dec 2024 10:06:39 -0500 Received: from mx02.h-brs.de ([194.95.62.22]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tKfLJ-0001x5-IA for help-guix@gnu.org; Mon, 09 Dec 2024 10:06:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=h-brs.de; i=@h-brs.de; q=dns/txt; s=20240830; t=1733756798; x=1765292798; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=NyDDynmYjtBcj2uvguZN9yJ/h0+yUkcLzCtSlF55EO0=; b=VOBpK1NwwM4EcOnRuMX3o3EZhtgA3uyFTJ87eAeqPpcuXlCYRDCNmPJr 3NU3kluC9hD2i2J/xdyodcdZ6Qr864XbakHXl5xgG9CKG9ug5eNViaY9U wnfMus5ebm9LDMWbVs4HhiG6NUnTBga4Q1j29WUS/n+nxLyMRuvocCwIW dNTfE5jhO7BzhYxlQ8tgrwez8f4GEH3S7w4NldL65BFcH+y17toFUAk2N mzdHEdCWgmLXAIjga58VhmMXbJigw356GSVxao12twtJSYuAXFmAYPoaU iFPfDxrcPgBVBIjIxGOyOP6Y/LE3Tkt4KwvE2SR31WvrahYxjKAEeUoQs g==; X-CSE-ConnectionGUID: Cdy+JiYPTy6G8YoIFWu+kg== X-CSE-MsgGUID: bwRvOeePTmSpHe1z8Dv/2A== X-ThreatScanner-Verdict: Negative X-IronPort-AV: E=Sophos;i="6.12,219,1728943200"; d="scan'208";a="1095245" Received: from unknown (HELO ux-2s-mailproxy.inf.h-brs.de) ([10.20.168.154]) by mx02.h-brs.de with ESMTP; 09 Dec 2024 16:06:32 +0100 Received: from gyps.h-brs.de ([194.95.69.14]) (authenticated bits=0) by ux-2s-mailproxy.inf.h-brs.de (8.15.2/8.15.2/Debian-22+deb11u3ska1) with ESMTPSA id 4B9F6TQo1854468 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 9 Dec 2024 16:06:30 +0100 From: Alexander Asteroth To: Edouard Klein Cc: help-guix@gnu.org Subject: Re: how to get info about system service? In-Reply-To: <87ikrtw2nu.fsf@rdklein.fr> (Edouard Klein's message of "Mon, 09 Dec 2024 11:50:45 +0100") References: <87a5d6tsjo.fsf@h-brs.de> <87ikrtw2nu.fsf@rdklein.fr> User-Agent: mu4e 1.12.4; emacs 29.1 Date: Mon, 09 Dec 2024 16:06:24 +0100 Message-ID: <871pyguc9b.fsf@h-brs.de> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Auth: by SMTP AUTH @ ux-2s11 X-MIMEDefang-Info-ge: Gescannt in Inf@FH-BRS, Regeln s. MiniFAQ E-Mail/Mailscanner X-Scanned-By: MIMEDefang @ FB02 @ H-BRS on 10.20.168.154 Received-SPF: pass client-ip=194.95.62.22; envelope-from=alexander.asteroth@h-brs.de; helo=mx02.h-brs.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 7420153609 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -3.86 X-Spam-Score: -3.86 X-TUID: BN4k5D3/f1uP Dear Edouard, Thanks a lot. That helped. But - in my opinion - it also shows that there is something missing, if you can start a service via the system configuration but cannot get information about it other than by hand. Cheers Alex On Mon, Dec 09 2024, 11:50:45, Edouard Klein wrote: > Hi, > > From reading the source in gnu/services/admin.scm, it appears to be > every monday: > > > (define %default-package-database-update-schedule > ;; Default mcron schedule for the periodic 'guix locate --update' job: once > ;; every Monday. > "10 23 * * 1") > > It's an mcron job. I don't know the canonical way to inspect it, but > what I did was: > > sudo herd status mcron > Status of mcron: > It is running since 08:05:26 AM (4 hours ago). > Running value is 578. > It is enabled. > Provides (mcron). > Requires (user-processes). > Will be respawned. > > Then I inspect the command: > cat /proc/578/cmdline > /gnu/store/mfkz7fvlfpv3ppwbkv0imb19nrf95akf-guile-3.0.9/bin/guile--no-auto-compile/gnu/store/c9hmd29cqhl48s1xavlxyv7ay47zhyhz-mcron-1.2.3/bin/mcron--log--log-format~1@*~a > ~a: > ~a~%/gnu/store/hcz4n1fslal58kn3x6v08zzn9i7i1fxi-mcron-job/gnu/store/y2rzyajc9g8cfvc3a917y985r0c39pm1-mcron-job/gnu/store/9j61jj8qhi5wszlbdfk67v88s4d7mb12-mcron-job > > One of these mcron-job files in the store should be the one running > "updatedb", I think you can extract the command line and run it > manually. > > For example one of my job is: > cat /gnu/store/hcz4n1fslal58kn3x6v08zzn9i7i1fxi-mcron-job > (job "30 12 01,08,15,22 * *" > "/gnu/store/zwhm4q7l9zwcl4vmbzybn2m5clqws3sg-delete-old-logs") > > I could then run > /gnu/store/zwhm4q7l9zwcl4vmbzybn2m5clqws3sg-delete-old-logs manually. > > > Somebody more versed in Guix than me may provide a better porcelain to > inspect all of that. > > Cheers, > > Edouard. > > Alexander Asteroth writes: > >> Dear all, >> >> so far I had not installed `(service file-database-service-type)` in my system >> config. >> Since I would like to have `locate` running I played a bit with `updatedb` but >> `locate` is very slow this way. >> That's why I not included `(service file-database-service-type)` into my system, >> run `system reconfigure` and rebooted. >> >> My question now is: how can I find out if the service is actually running `herd >> status` doesn't show anything about this service. >> It's supposed to run `updatedb` as a cron job but how can I find this `crontab` >> entry? >> >> What I would actually like to do is find out if the configuration is as I expect >> it and run this service now once now. >> >> Thanks for any help. >> >> Cheers >> Alex