[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Вопрос по опциям монтирования SSD и logrotate

From: Ludovic Courtès
Subject: Re: Вопрос по опциям монтирования SSD и logrotate
Date: Thu, 05 Apr 2018 10:46:35 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)


Pierre Neidhardt <address@hidden> skribis:

> Oleg Pykhalov <address@hidden> writes:
>>>> Хорошо, мы можем выполнять trim по cron (mcron).  Этот сервис есть в
>>>> %desktop-services?
>>> Нет.
>>> Список сервисов ‘%desktop-services’ можно посмотреть в
>>> ‘gnu/services/desktop.scm’ [2] или вызвав Guile:
>>>     guile -e '(@@ (gnu services desktop) %desktop-services)'
>>>> Или я должен явно прописывать это? 
>>> Да, примеры есть в документации Guix [3].
>> The question was about how to check what services contains
>> ‘%desktop-services’ variable.
> Is there a convenient way to get a pretty print out of the result?

You can use ‘guix system extension-graph’ to view the graph of services
of your system:

Alternately, you can inspect the ‘%desktop-services’ variable at the REPL:

--8<---------------cut here---------------start------------->8---
$ guile
GNU Guile 2.2.3
Copyright (C) 1995-2017 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guile-user)> ,use(gnu services desktop)
scheme@(guile-user)> ,use(gnu services)
scheme@(guile-user)> (map (compose service-type-name service-kind) 
$1 = (slim screen-locker screen-locker mtp network-manager wpa-supplicant avahi 
udisks upower accountsservice colord geoclue polkit elogind dbus ntp login 
console-fonts agetty mingetty mingetty mingetty mingetty mingetty mingetty 
static-networking syslog urandom-seed guix nscd udev special-files)
--8<---------------cut here---------------end--------------->8---


reply via email to

[Prev in Thread] Current Thread [Next in Thread]