From: Alexander Asteroth <alexander.asteroth@h-brs.de>
To: Edouard Klein <edou@rdklein.fr>
Cc: help-guix@gnu.org
Subject: Re: how to get info about system service?
Date: Mon, 09 Dec 2024 16:06:24 +0100 [thread overview]
Message-ID: <871pyguc9b.fsf@h-brs.de> (raw)
In-Reply-To: <87ikrtw2nu.fsf@rdklein.fr> (Edouard Klein's message of "Mon, 09 Dec 2024 11:50:45 +0100")
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 <edou@rdklein.fr> 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 <alexander.asteroth@h-brs.de> 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
prev parent reply other threads:[~2024-12-09 15:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-08 9:47 how to get info about system service? Alexander Asteroth
[not found] ` <87ikrtw2nu.fsf@rdklein.fr>
2024-12-09 15:06 ` Alexander Asteroth [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871pyguc9b.fsf@h-brs.de \
--to=alexander.asteroth@h-brs.de \
--cc=edou@rdklein.fr \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.