guix-devel
[Top][All Lists]
Advanced

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

Re: trying to write my own herd service


From: EuAndreh
Subject: Re: trying to write my own herd service
Date: Sat, 05 Nov 2022 10:26:20 -0300

> >          (start #~(make-forkexec-constructor
> >                    (list
> >                     (string-append
> > #$go-github-com-KefirTheAutomator-daemon "/bin/daemon")
> >                     " -pidFile=/var/run/my-daemon.pid"
> >                     " -logFile=/var/log/my-daemon.log")))

[...]

> Your process probably dies too often, thus causing shepherd to disable
> it.

I'd guess that it is dying too often because it is failing to be launched.  The
extra spaces before the "-pidFile" and "-logFile" arguments aren't ignored, like
when in a shell, but are included explicitly.  A contrived equivalent example
is:

    $ ls -l
    total 36
    drwxr-xr-x  6 andreh users 4096 Nov  4 19:42 Desktop
    drwxr-xr-x  7 andreh users 4096 Oct 31 21:07 Documents
    ...
    $ ls '-l'
    total 36
    drwxr-xr-x  6 andreh users 4096 Nov  4 19:42 Desktop
    drwxr-xr-x  7 andreh users 4096 Oct 31 21:07 Documents
    ...
    $ ls ' -l'
    ls: cannot access ' -l': No such file or directory

I believe that a similar thing is happening to the options to your program, and
it is failing to execute because of that.  You could confirm it by looking that
the logs.



reply via email to

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