Web lists-archives.com

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




On Mon, Oct 08, 2018 at 06:17:52PM +0800, Weiwu Zhang wrote:
> To show this dæmon itself is properly configured and runs fine on Debian 9.5:
> 
> # su bitcoin
> $ cd
> $ /usr/local/bin/bitcoind -daemon
> Bitcoin server starting
> $ pgrep bitcoind
> 3946
> 
> However, it won't start if converted to a systemd service:
> 
> # cat /etc/systemd/system/bitcoin.service
> [Unit]
> Description=bitcoind
> After=syslog.target
> 
> [Service]
> User=bitcoin
> ExecStart=/usr/local/bin/bitcoind -daemon

Remove the -daemon flag here and try again.

Supervision services like systemd usually prefer daemons to be running
in the foreground.


-dsr-