From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: Re: SystemD & Symbolic Links Date: Tue, 27 Dec 2016 10:02:11 +0000 Message-ID: <87ful97krg.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me> References: <20161227034844.GA14923@jasmine> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44101) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cLoaQ-0002eu-9d for help-guix@gnu.org; Tue, 27 Dec 2016 05:02:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cLoaN-0007NI-6n for help-guix@gnu.org; Tue, 27 Dec 2016 05:02:26 -0500 Received: from aibo.runbox.com ([91.220.196.211]:49815) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cLoaM-0007Lx-Vl for help-guix@gnu.org; Tue, 27 Dec 2016 05:02:23 -0500 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" To: Hilco Wijbenga Cc: help-guix@gnu.org Hilco Wijbenga writes: > On 26 December 2016 at 19:48, Leo Famulari wrote: >> On Mon, Dec 26, 2016 at 03:14:42PM -0800, Hilco Wijbenga wrote: >>> Specifically, "systemctl enable guix-daemon" fails with "Failed to >>> execute operation: Too many levels of symbolic links" (see [1]). Is >>> there a workaround for this? I suppose I could simply copy >>> guix-daemon.service into /etc/systemd/system instead of linking to it >>> but I'm not sure how many other things will fail because of this >>> symlink limitation. >> >> I recommend copying the service file as you suggested. It's exactly what >> I do on Debian, both before systemd 231 and after, and it works fine for >> me. > > Okay, thanks. Why also for systemd >=231? > >> If the ExecStart value contains a path to '/gnu/store/...', you should >> replace that path with >> '/var/guix/profiles/per-user/root/guix-profile/bin/guix-daemon'. >> >> Using the absolute path to /gnu/store only works properly if the service >> file is a symlink to root's profile, in which case the executable path >> would get updated as root updates their packages. My suggested >> replacement will have the same effect. >> >> If you do that, make sure to recreate the rest of the ExecStart value >> after the path to the guix-daemon. > > Mmm, okay, I'll keep that in mind. > >> PS What OS are you using? I'm wondering if it's too early to rely on >> systemd 231 being widely deployed. > > This was the latest OpenSUSE (LEAP 42.2) that I'm thinking of using at > work. At home I use Gentoo but without systemd so I should not have > any issues there. There exists a package (and service) for Gentoo in the youbroketheinternet-overlay, but I no longer maintain it. Improvements welcome, especially for the service which can slow down shutdown / reboot to 30 minutes and more. I no longer use Gentoo, but contributions are easy and welcome. Maybe we can get the openrc one day generic enough to include it in Guix. I no longer use Gentoo so I can't test. The way most people who use Gentoo here seem to have done it is using not the package. At least one person in IRC uses Guix on Gentoo (ZombieChicken ?). > >> PPS It's "Guix", without all capital letters :) > > Huh, yes, I don't know why I made it all caps. :-) And systemd doesn't > have any caps either. What is this world coming too! ;-) > > -- ♥Ⓐ ng0 PGP keys and more: https://n0is.noblogs.org/ http://ng0.chaosnet.org