Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #201015

Re: systemd can't start a dæmon and doesn't give any error either

From Weiwu Zhang <a@colourful.land>
Newsgroups linux.debian.user
Subject Re: systemd can't start a dæmon and doesn't give any error either
Date 2018-10-08 15:20 +0200
Message-ID <wGDC1-7N4-3@gated-at.bofh.it> (permalink)
References <wGB7b-6h1-1@gated-at.bofh.it> <wGDsl-7K4-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


El lun., 8 oct. 2018 a las 20:44, Dan Ritter (<dsr@randomstring.org>) escribió:
> Remove the -daemon flag here and try again.
>
> Supervision services like systemd usually prefer daemons to be running
> in the foreground.

Thanks for the advice!

The problem seems to be elsewhere:

# grep bitcoind /etc/systemd/system/bitcoin.service
Description=bitcoind
ExecStart=/usr/local/bin/bitcoind -printtoconsole
# systemctl start bitcoin.service
# pgrep bitcoin || echo failed
failed

# journalctl -u bitcoin.service
-- Logs begin at Mon 2018-10-08 03:53:55 BST, end at Mon 2018-10-08 13:53:12 BST
Oct 08 13:51:57 lightning systemd[1]: Started bitcoind.
Oct 08 13:52:03 lightning systemd[1]: Started bitcoind.

Now, since normally bitcoind print a line like this:

$ /usr/local/bin/bitcoind
Bitcoin server starting

If systemd is honestly recording the output some line like this should
be found in the syslog since I configured

StandardOutput=syslog+console
StandardError=syslog+console

But syslog simply mentioned this and nothing more:

Oct  8 13:58:52 lightning systemd[1]: Started bitcoind.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

systemd can't start a dæmon and doesn't give any error either Weiwu Zhang <a@colourful.land> - 2018-10-08 12:40 +0200
  Re: systemd can't start a dæmon  and doesn't give any error either Dan Ritter <dsr@randomstring.org> - 2018-10-08 15:10 +0200
    Re: systemd can't start a dæmon and doesn't give any error either Weiwu Zhang <a@colourful.land> - 2018-10-08 15:20 +0200
  Re: systemd can't start a dæmon  and doesn't give any error either Greg Wooledge <wooledg@eeg.ccf.org> - 2018-10-08 15:20 +0200
    Re: systemd can't start a  dæmon and doesn't give any error either "AvY" <avy@avyenterprises.com> - 2018-10-08 16:40 +0200
      Re: systemd can't start a dæmon and doesn't give any error either Weiwu Zhang <a@colourful.land> - 2018-10-08 23:10 +0200
    [OT] Systemd and forking programs (was systemd can't start a dæmon and doesn't give any error either) Didar Hossain <didar.hossain@gmail.com> - 2018-10-09 09:10 +0200
      Re: [OT] Systemd and forking programs (was systemd can't start a dæmon and  doesn't give any error either) <tomas@tuxteam.de> - 2018-10-09 11:30 +0200
        Re: [OT] Systemd and forking programs (was systemd can't start a dæmon and doesn't give any error either) Jonathan Dowland <jmtd@debian.org> - 2018-10-09 12:00 +0200
          Re: [OT] Systemd and forking programs (was systemd can't start a dæmon and  doesn't give any error either) <tomas@tuxteam.de> - 2018-10-09 12:30 +0200
        Re: [OT] Systemd and forking programs (was systemd can't start a dæmon and doesn't give any error either) Greg Wooledge <wooledg@eeg.ccf.org> - 2018-10-09 15:10 +0200
          Re: [OT] Systemd and forking programs (was systemd can't start a dæmon and  doesn't give any error either) <tomas@tuxteam.de> - 2018-10-09 18:20 +0200
            Re: Systemd and forking programs (was systemd can't start a dæmon and doesn't give any error either) Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.COM> - 2018-11-17 22:00 +0100
              Re: Systemd and forking programs (was systemd can't start a dæmon and doesn't give any error either) Roberto C. Sánchez <roberto@debian.org> - 2018-11-17 22:30 +0100
      Re: [OT] Systemd and forking programs (was systemd can't start a dæmon and doesn't give any error either) Jonathan Dowland <jmtd@debian.org> - 2018-10-09 11:50 +0200
        Re: [OT] Systemd and forking programs (was systemd can't start a dæmon and doesn't give any error either) Greg Wooledge <wooledg@eeg.ccf.org> - 2018-10-09 15:10 +0200

csiph-web