* [SHEPHERD]: Could not start manually as user
@ 2020-05-18 13:31 Raghav Gururajan
2020-05-18 14:41 ` Efraim Flashner
2020-05-18 18:11 ` Leo Famulari
0 siblings, 2 replies; 3+ messages in thread
From: Raghav Gururajan @ 2020-05-18 13:31 UTC (permalink / raw)
To: help-guix
[-- Attachment #1.1: Type: text/plain, Size: 784 bytes --]
Hello Guix!
I need help with the following:
[1]
When I manually start shepherd as user, the get the error,
*** START ***
rg@secondary ~$ shepherd
Backtrace:
3 (primitive-load "/run/current-system/profile/bin/shephe…")
In shepherd.scm:
174:9 2 (main . _)
In shepherd/support.scm:
388:20 1 (verify-dir _ #:secure? _)
In unknown file:
0 (stat "/run/user/1000/shepherd" #<undefined>)
ERROR: In procedure stat:
In procedure stat: No such file or directory: "/run/user/1000/shepherd"
*** END ***
What is the correct way to rectify this?
P.S. efraim and lfam, starting a thread to discuss. :-)
[2]
Is there a way to automatically start shepherd as user, when I log-in?
Script or Cron?
Thank you!
Regards,
RG.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [SHEPHERD]: Could not start manually as user
2020-05-18 13:31 [SHEPHERD]: Could not start manually as user Raghav Gururajan
@ 2020-05-18 14:41 ` Efraim Flashner
2020-05-18 18:11 ` Leo Famulari
1 sibling, 0 replies; 3+ messages in thread
From: Efraim Flashner @ 2020-05-18 14:41 UTC (permalink / raw)
To: Raghav Gururajan; +Cc: help-guix
[-- Attachment #1: Type: text/plain, Size: 1591 bytes --]
On Mon, May 18, 2020 at 09:31:18AM -0400, Raghav Gururajan wrote:
> Hello Guix!
>
> I need help with the following:
>
> [1]
>
> When I manually start shepherd as user, the get the error,
>
> *** START ***
> rg@secondary ~$ shepherd
> Backtrace:
> 3 (primitive-load "/run/current-system/profile/bin/shephe…")
> In shepherd.scm:
> 174:9 2 (main . _)
> In shepherd/support.scm:
> 388:20 1 (verify-dir _ #:secure? _)
> In unknown file:
> 0 (stat "/run/user/1000/shepherd" #<undefined>)
>
> ERROR: In procedure stat:
> In procedure stat: No such file or directory: "/run/user/1000/shepherd"
> *** END ***
>
> What is the correct way to rectify this?
It looks like '/run/user/1000/shepherd' doesn't exist. I suppose the
error message could be better, shepherd can't create its socket in that
directory if it can't write to it.
One option is to start shepherd with 'shepherd
--socket=~/.config/shepherd/shepherd.sock' which will use a directory
which should exist already.
> P.S. efraim and lfam, starting a thread to discuss. :-)
>
> [2]
>
> Is there a way to automatically start shepherd as user, when I log-in?
> Script or Cron?
I start mine by hand. Unfortunately mcron doesn't have support for the
'@' notation, so '@reboot' doesn't work.
>
> Thank you!
>
> Regards,
> RG.
>
--
Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [SHEPHERD]: Could not start manually as user
2020-05-18 13:31 [SHEPHERD]: Could not start manually as user Raghav Gururajan
2020-05-18 14:41 ` Efraim Flashner
@ 2020-05-18 18:11 ` Leo Famulari
1 sibling, 0 replies; 3+ messages in thread
From: Leo Famulari @ 2020-05-18 18:11 UTC (permalink / raw)
To: Raghav Gururajan; +Cc: help-guix
[-- Attachment #1: Type: text/plain, Size: 395 bytes --]
On Mon, May 18, 2020 at 09:31:18AM -0400, Raghav Gururajan wrote:
> ERROR: In procedure stat:
> In procedure stat: No such file or directory: "/run/user/1000/shepherd"
> *** END ***
It needs XDG_RUNTIME_DIR to be set, as mentioned in the manual:
https://www.gnu.org/software/shepherd/manual/shepherd.html#Invoking-shepherd
It would be great if this could happen automagically on Guix System.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-05-18 18:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-18 13:31 [SHEPHERD]: Could not start manually as user Raghav Gururajan
2020-05-18 14:41 ` Efraim Flashner
2020-05-18 18:11 ` Leo Famulari
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.