From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: Re: Features of installing package that works as service Date: Wed, 28 Nov 2018 08:05:17 +0100 (CET) Message-ID: References: < (znavko's message of "Tue, 27 Nov 2018 10:38:22 +0100 (CET)")> <87a7luwqa8.fsf@fastmail.com> <<87a7luwqa8.fsf@fastmail.com>> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_129106_470001302.1543388717519" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47493) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRu0L-0005kV-2f for help-guix@gnu.org; Wed, 28 Nov 2018 02:11:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gRu0H-0007ua-QU for help-guix@gnu.org; Wed, 28 Nov 2018 02:11:25 -0500 Received: from w1.tutanota.de ([81.3.6.162]:60934) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRu0G-0007pn-2d for help-guix@gnu.org; Wed, 28 Nov 2018 02:11:21 -0500 Received: from w2.tutanota.de (unknown [192.168.1.163]) by w1.tutanota.de (Postfix) with ESMTP id 8076EFA0D57 for ; Wed, 28 Nov 2018 07:05:17 +0000 (UTC) In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" Cc: Help Guix ------=_Part_129106_470001302.1543388717519 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, Guix Help! guix understands this config, but still I have avahi-daem= on and ntpd services. They are not started, I want delete them at all. How = to do that? ;;this is znavko's cute config (use-modules (gnu) (gnu system nss) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (g= nu services desktop) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (s= rfi srfi-1) ;;for remove function =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (g= nu services networking) ;;for remove ntp =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (g= nu services avahi) ;;for remove avahi =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (g= nu services xorg) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (g= nu services databases);;for postgres ) (use-service-modules desktop) (use-package-modules certs gnome) (operating-system (host-name "antelope") (timezone "Europe/Moscow") (locale= "en_US.utf8") =C2=A0 (bootloader (bootloader-configuration =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (bootloader grub-bootloader) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (target "/dev/sda"))) =C2=A0 (file-systems (cons (file-system =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (device "/d= ev/sda1") (mount-point "/") (type "ext4")) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 %base-file-systems)) =C2=A0 (swap-devices '("/dev/sda2")) =C2=A0 (users (cons* (user-account (name "bob") (group "users") =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (supplementary-groups '("wheel" "netdev" "audio" "video")) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (home-directory "/home/bob")) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (user-account (name "alice") (group "users") =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (supplementary-groups '("wheel" "netdev" "audio" "video")) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (home-directory "/home/alice")) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (user-account (name "mom") (group "users") =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (supplementary-groups '("wheel" "netdev" "audio" "video")) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (home-directory "/home/mom")) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 %base-user-accounts)) =C2=A0 ;; This is where we specify system-wide packages. =C2=A0 (packages (cons* nss-certs=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 ;for HTTPS access =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 gvfs=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;for user mounts =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 %base-packages)) =C2=A0 (services (cons*=C2=A0 ;;(tor-service) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (service postgresql-service-type) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (xfce-desktop-service) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (modify-services=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=20 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (remove (la= mbda (service) =C2=A0=C2=A0=C2=A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=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (handle-lid-switch 'ignore))) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 );;end of modify desktop-srvices =C2=A0 ));;end of services =C2=A0 ;; Allow resolution of '.local' host names with mDNS. =C2=A0 (name-service-switch %mdns-host-lookup-nss)) =C2=A0=20 # herd status Started: ... =C2=A0+ xorg-server Stopped: =C2=A0- avahi-daemon =C2=A0- networking =C2=A0- ntpd =C2=A0- swap-/dev/sda2 =C2=A0- term-auto =C2=A0- user-homes =C2=A0- wpa-supplicant =C2=A0=20 How delete at all avahi-daemon and ntpd? ------=_Part_129106_470001302.1543388717519 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello, Guix Help! guix understands this config, but still I have avahi= -daemon and ntpd services. They are not started, I want delete them at all.= How to do that?

;;this is znavko's cute config=

(use-modules (gnu) (gnu system nss)
   &nbs= p;         (gnu services desktop)            = ; (srfi srfi-1) ;;for remove function
     &n= bsp;       (gnu services networking) ;;for re= move ntp
          &= nbsp;  (gnu services avahi) ;;for remove avahi
   =           (gnu services xorg)<= br />           &nbs= p; (gnu services databases);;for postgres
)
(use-service-modules = desktop)
(use-package-modules certs gnome)

(operating-syste= m (host-name "antelope") (timezone "Europe/Moscow") (lo= cale "en_US.utf8")
  (bootloader (bootloader-configurat= ion
           =      (bootloader grub-bootloader)
  &nbs= p;             = (target "/dev/sda")))
  (file-systems (cons (file-syste= m
           &n= bsp;            (dev= ice "/dev/sda1") (mount-point "/") (type "ext4&quo= t;))
           = ;           %base-file-sy= stems))
  (swap-devices '("/dev/sda2"))

&nbs= p; (users (cons* (user-account (name "bob") (group "users&qu= ot;)
           = ;     (supplementary-groups '("wheel" "n= etdev" "audio" "video"))
   &n= bsp;            (hom= e-directory "/home/bob"))
     &nbs= p;          (user-account (nam= e "alice") (group "users")
    = ;            (supple= mentary-groups '("wheel" "netdev" "audio" &qu= ot;video"))
         = ;       (home-directory "/home/alice&quo= t;))
           = ;     (user-account (name "mom") (group "= ;users")
         &n= bsp;      (supplementary-groups '("wheel"= ; "netdev" "audio" "video"))
  = ;            &n= bsp; (home-directory "/home/mom"))
    &= nbsp;          %base-user-acco= unts))

  ;; This is where we specify system-wide packages.<= br />  (packages (cons* nss-certs      &= nbsp;  ;for HTTPS access
      &nbs= p;            gvfs&n= bsp;            = ; ;for user mounts
        &nb= sp;          %base-packages))<= br />
  (services (cons*  ;;(tor-service)
  &= nbsp;           &nbs= p;     (service postgresql-service-type)
 &nb= sp;            =       (xfce-desktop-service)

 &nbs= p;            &= nbsp;     (modify-services     = ;
           &= nbsp;            (re= move (lambda (service)
        = ;            &n= bsp;       (eq? (service-kind service)
=             &nb= sp;            =        ntp-service-type avahi-service))
=
           &nb= sp;            =     %desktop-services
     &nb= sp;            =       );end of remove
    = ;            &n= bsp;       (elogind-service-type
 &= nbsp;           &nbs= p;            &= nbsp; c =3D> (elogind-configuration
     &= nbsp;           &nbs= p;            &= nbsp; (handle-lid-switch 'ignore)))
     &nbs= p;            &= nbsp; );;end of modify desktop-srvices

  ));;end of service= s

  ;; Allow resolution of '.local' host names with mDNS.  (name-service-switch %mdns-host-lookup-nss))

  <= br />
# herd status
Started:
...
 + xorg-serv= er
Stopped:
 - avahi-daemon
 - networking
&nb= sp;- ntpd
 - swap-/dev/sda2
 - term-auto
 - u= ser-homes
 - wpa-supplicant
 
How dele= te at all avahi-daemon and ntpd?
------=_Part_129106_470001302.1543388717519--